Git Product home page Git Product logo

vin-ai / jquery.smartify.js Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 2.0 252 KB

jQuery Smartify loads images, calls Ajax, plays with css classes in on demand, while element is/or becoming visible in device Viewport. Replacement of jQuery Lazyload.

Home Page: http://www.vin-sha.in/jquery-plugins/jquery.smartify

License: MIT License

JavaScript 93.46% HTML 1.16% CSS 5.39%
device-viewport frontend-webdevelopment jquery-lazyload jquery-plugin smartify viewport

jquery.smartify.js's Introduction

Hi there ๐Ÿ‘‹

I'm a Lead Engineer at @Tivix based in Gurugram, ๐Ÿ‡ฎ๐Ÿ‡ณ IND.

๐Ÿš€ Stuff I've worked with

JavaScript Android React Java TypeScript Python C C++ CSS Docker Express Git Git Heroku HTML5 JQuery Linux MySQL NodeJS NPM php

Vinay's github stats

Top Langs I've worked on

jquery.smartify.js's People

Contributors

vin-ai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jquery.smartify.js's Issues

Feature: Add support for HTML5 History

This will be beneficial for single page website and nested page scrolling articles/blog page.

Change URL as next section,article/blog is/or becoming visible

Feature: Retina Support

Read different URL from different attribute if window.devicePixelRatio is greater than 1.

e.g:

For Image Tag:

<img class="smartify"
    ng-src="http://lorempixel.com/420/236/nature/1"
    ng-src-dpr-1_5x="http://lorempixel.com/480/270/nature/1"
    ng-src-dpr-2x="http://lorempixel.com/560/315/nature/1"
    ng-src-dpr-3x="http://lorempixel.com/640/360/nature/1"
/>

For Anchor Tag:

<a class="smartify hidden_if_noscript"
    href="http://www.example.com/awesome-page"
    ng-src-dpr-1_5x="http://www.example.com/awesome-page?dpr=1.5"
    ng-src-dpr-2x="http://www.example.com/awesome-page?dpr=2"
    ng-src-dpr-3x="http://www.example.com/awesome-page?dpr=3"
>Load Awesome Page</a>
<noscript>
<iframe src="http://www.example.com/awesome-page"
    width="100%" frameborder="0" allowtransparency="true" height="500">
</iframe>
</noscript>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.