Yes that works in the head tag. You could actually put it anywhere, but I believe it will start preloading earlier in the head tag. You could make it a function and add it to your onload event in the body tag if you want preload to start after the page loads. That way your page won't wait to finish loading until the preload is done.