What images are onload in the body tag? If they are the images from the gallery, just get rid of the onload event. By the time onload fires, the images for the gallery are already loaded or are being loaded. If they are other images - say for a menu or other rollover effects on the page, it still doesn't make much sense to load them onload:
Gets on his soapbox:
Preloading images is best done on a page prior to the one they will be used on. Failing that, the code to preload them should be one of the first things the browser encounters on the page. If you wait until the page is loaded to preload your images, they aren't really being preloaded, are they?
Gets off his soapbox.
If these are other images and need to be preloaded to make other effects on your page work, I could help you to devise a more efficient way to make that happen without an onload event. Finally, if you won't have it any other way or if you have other legitimate onload events that need to be combined with this script, remove this line from motiongallery.js:
Then in your body tag with the other onload event, let's say it looks something like this:Code:window.onload=fillup
Make it look like this:Code:<body onload="someFunc('param_1', 'param_2');">
Code:<body onload="fillup();someFunc('param_1', 'param_2');">
