javascript - Alternative to preloading images -
so i'm trying make jquery slideshow.
i've read many tutorials, , pretty of them preload images using variation of code below:
imagearray[imagenum++] = new imageitem(imagedir + "02.jpg"); imagearray[imagenum++] = new imageitem(imagedir + "03.jpg"); imagearray[imagenum++] = new imageitem(imagedir + "04.jpg"); imagearray[imagenum++] = new imageitem(imagedir + "05.jpg");
this fine if have 4 slides, if slide show has around 10 or 15 different slides, can greatly decrease speed of website.
so question persists, how can of pictures client , not cause such big decrease in functionality?
you can try preload image next in slideshow. helpful link: http://engineeredweb.com/blog/09/12/preloading-images-jquery-and-javascript/
Comments
Post a Comment