Jittery scene transitions! How to make them smoother?

I just found the above solution by @h_classen which shows how images can be loaded via code instead of using the "preload" option that slows the whole site down at the beginning. This code can be used after the site with a couple of images has loaded - so that the rest of the images can be loaded in the background while the user is busy looking at the site.