Tiny jQuery plugin to deal with responsive image delivery using Bootstrap breakpoints.
This little script use the Twitter Bootstrap
classes: visible-*-block
to know what media we are delivering.
Demo: http://monkeymonk.be/bootstrap-data-src.js/demo/
jQuery
and Twitter Bootstrap
filesBootstrap Data Src
file$('.cool-img').dataSrc();
on document
readyexample.html
to know more{
inview: false, // lazyload
offset: 0, // used with inview
resize: false // update src when resize event is fired
}