June 18, 201115 yr Hey Everyone! I came across a great technique to preload multiple images with very little code and almost no markup. I tried it yesterday and it works great and so far I haven't found many downsides worth worrying about. I'm sure many know about this but if not, here's the link/tutorial: http://perishablepress.com/press/2010/01/04/preload-images-css3/ Credit Goes To Perishable Press for the idea. Let me know what you guys think of this method? Maybe we can get some discussion brewing about the pro's and con's of this and other techniques. I think it's safe to say that Javascript is out (in most cases) and CSS is one of the quickest, easiest and most efficient ways of preloading multiple images. This just happens to be the best one for my project. Thanks!
June 20, 201115 yr Author it doesn't work in all browsers so is, therefore, useless. According to W3schools.com it does in all newer browsers? Correct? In my case, I only have 1 image that truly needs to be preloaded so this works fine. In older browsers it will just revert back to the original image specified and the rest will be ignored. Either way, I think it's a fairly good idea and hopefully fully supported soon.
Create an account or sign in to comment