I wrote very simple jquery script that changes the img src, but now i have glich because i didn’t preload the images.My question is how to preload images using jquery.
Here is my code.
/*Change images src on hover*/
Should i use it on some other way, or just to put this in top ? I don’t understand the logic of this.
Or i must use preloads or 1 etc… in my code path to image ?
Permalink to comment # 2:29AM
Add the following code to your documen.ready,
var preloads = [