Is the function I wrote below enough to preload images in most, if not all, browsers commonly used today?
function preloadImage(url) { var img=new Image(
You can move this code to index.html for preload images from any url