Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 666 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 666 Bytes

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() {}
    });
});