Skip to content

Instantly share code, notes, and snippets.

View dtkcs01's full-sized avatar
🏠
Working from home

Void dtkcs01

🏠
Working from home
View GitHub Profile
@dtkcs01
dtkcs01 / jquery.preload.js
Created September 1, 2018 07:32 — forked from mathiasbynens/jquery.preload.js
JavaScript preload() function
/*!
* $.preload() function for jQuery – http://mths.be/preload
* Preload images, CSS and JavaScript files without executing them
* Script by Stoyan Stefanov – http://www.phpied.com/preload-cssjavascript-without-execution/
* Slightly rewritten by Mathias Bynens – http://mathiasbynens.be/
* Note that since this script relies on jQuery, the preloading process will not start until jQuery has finished loading.
*/
jQuery.preload = function(array) {
var length = array.length,