Skip to content

wearede/DePreLoad.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DePreLoad js image preloader

DEPreLoad.js - DEMO

Include this in your page in <head>, or before </body>:

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="jquery.DEPreLoad.js"></script>

Initialize the plugin within document ready function:

$(document).ready(function() {
    var loader = $("body").DEPreLoad({
        OnStep: function(percent) {},
        OnComplete: function() {}
    });
});