I have an image gallery with many fairly large images on some pages. And, these pages take about 10 seconds to all load. While the images are downloading, my javascript menu does not appear. Is there a way to tell the browser to load the javascript before any of the images on the page?
Maybe if you place the loading section in a function and only call that function when the page is loaded. The loading function: function PreLoad(){ var images = new Array(); images[0] = new Image(); images[0].src='www.somewhare.com/Images/img1.jpg'; images[1] = new Image(); images[1].src='www.somewhare.com/Images/img2.jpg'; } call the function when the page is loaded: <body onload="javascriptreLoad();">