Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery preload images

// Image proeloading with jQuery
$.fn.preload = function() {
    this.each(function(){
        $('<img/>')[0].src = this;
    });
}

// Usage:

$(['img1.jpg','img2.jpg','img3.jpg']).preload();
Comment

PREVIOUS NEXT
Code Example
Javascript :: mongodb add key value to all documents 
Javascript :: mongodb unwind 
Javascript :: javascript number format indian currency 
Javascript :: How to get the background image URL of an element using jQuery 
Javascript :: round down the number javascript 
Javascript :: js refresh 
Javascript :: cookie in javascript 
Javascript :: come andare a capo su javascript 
Javascript :: fs exec child process 
Javascript :: css on javascript 
Javascript :: angular loop through key values in map 
Javascript :: stop() in jquery 
Javascript :: angularjs onclick 
Javascript :: jquery scroll to element in scrollable div 
Javascript :: javascript indentation 
Javascript :: npm config proxy 
Javascript :: react conditional array item 
Javascript :: change the position of div using javascript 
Javascript :: to do list local storage javascript 
Javascript :: angular input type text character limit 
Javascript :: html to react converter 
Javascript :: jquery input hidden value 
Javascript :: js sort object properties alphabetically 
Javascript :: add 2 for hours in date timestamp js 
Javascript :: print all the subarrays of an array 
Javascript :: $unset mongodb 
Javascript :: Lodash.chunk chunk 
Javascript :: comments js 
Javascript :: lodash sort json 
Javascript :: javascript date format 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =