jQuery Plugin For Easy Image Preloading - DePreLoad.js

File Size: 128 KB
Views Total: 7180
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
jQuery Plugin For Easy Image Preloading - DePreLoad.js

DePreLoad.js is a lightweight jQuery plugin to quickly detect if all the images of your webpage have been loaded, as well as to do some cool things when the images are loading or have been loaded completely. Supports both local or external images.

Basic usage:

1. Load the jQuery DePreLoad.js plugin after you have jQuery library included.

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

2. Enable the plugin on document ready.

$(document).ready(function() {
  var loader = $("body").DEPreLoad({

    // callbacks
    OnStep: function(percent) {},
    OnComplete: function() {}
  });
});

This awesome jQuery plugin is developed by wearede. For more Advanced Usages, please check the demo page or visit the official website.