Skip to content
Simple jquery plugin to Lazy Load Background Images
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
js
src
README.md
bower.json
index.html

README.md

Lazy Load Background Images

Simple JQuery plugin to lazy load background images

#How to Use?

Include jQuery and Lazy load plugin before closing body tag:

<script src="jquery.min.js" type="text/javascript"></script>
<script src="jquery.bglazyload.js" type="text/javascript"></script>

Add container's background image path in "data-bgimage" data attribute

<div class="lazy" data-bgimage="img/bg.jpg" width="600" height="450" >

then initialise using

$("div.lazy").lazyload();

View Demo

##Installing Via Bower

bower install bg-lazy-load --save-dev
You can’t perform that action at this time.