vForums Support > Programming & Coding :: Programming Discussion :: > Image Preloading

Image Preloading - Posted By ashkir (ashkir) on 19th Jan 10 at 12:37pm
How do you guys like to preload your bigger images to be used later?

A lot of the articles I keep finding are dated 1999 to 2000 :[

Re: Image Preloading - Posted By Ross (admin) on 19th Jan 10 at 1:56pm
It's been a while since I did any image pre-loading {Tongue Out} With connection speeds getting faster it becomes less of an issue. I think the last time I did it we had the images written to a hidden <span> tag on the page (with JS) after everything else had loaded. They weren't particularly big images though, they were background images for a contact form that appears when a button is clicked.

Re: Image Preloading - Posted By Michael (wrighty) on 19th Jan 10 at 2:16pm
I'd personally just use JS.

var i = new Image();
i.src = 'blah.jpg';

Re: Image Preloading - Posted By Aiken (ionfortuna) on 19th Jan 10 at 3:39pm
That is the method in my JS book