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(
Yes. This should work on all major browsers.