September 13, 2012
Foresight-js is a jquery plugin that gives webpages the ability to tell if the user’s device is capable of viewing high-resolution images (such as the 3rd generation iPad / New MacBook) before the image is requested from the server. Additionally, Foresight.js judges if the user’s device currently has a fast enough network connection for high-resolution images. Depending on device display and network connectivity, foresight.js will request the appropriate image for the webpage.
By customizing the img src attribute using methods such as URI templates, or finding and replacing values within the URI, it is able to form requests built for your image’s resolution variants.
It has the following features :-
Similar plugin : Retina-js
Created by Adam Bradley.
© 2013 jquer.in
Curated By Jay Kanakiya