Does anyone know how you can get get JavaScript to download any images as the page loads but not display them so that when they are called for rollovers they respond quickly, even with large images?
So is it pretty much a case that if the image is assigned to a variable, even if it's not displayed it will be stored in memory? And the same goes for other objects too....
JavaScript is really weird for me to understand after starting out with PHP/ASP and moving into an object oriented client side language. There's so much of it!
yeah.. your browser will fetch the image(s) as soon as you set .src to something.. that includes ones that aren't an image somewhere already.. however, you may get some browser traffic if your cache size is small/page is large..
page cache settings apply too.. so if you set no-cache or whatever, you'll probably always get a new image from the server..