How can I preload images in a browser?

HOW does one cause the preloading of images? For the same page, or for the following one?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Is the only way to do this mean I must put a javascript before the ?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If the images are part of the page HTML, then they will preload automatically – that’s built into the browser. If the images are in the page, but only load in response to a JavaScript event (rollovers, for example) then they have to be preloaded with JavaScript, or else there will be a lag when the effect is initially triggered. Freeway writes this code automatically if you build your rollovers using the Rollover Action. If you want to see what that code looks like, then make a simple sample page with a couple of rollover images on it (set up with the Action) and preview it into a text editor or view source in a browser.

Walter

On Sep 7, 2013, at 12:02 PM, gunner holmes wrote:

Is the only way to do this mean I must put a javascript before the ?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I found this answer somewhere else. It reminded me that I already new this from my past way back in my past.

You can also preload an image without JavaScript by creating a 1 pixel square version of the file and hiding it somewhere on the page, like so:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

All I can do to add to this is to give the URL where I got this info. It is still easier, to me, than other methods talked about.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thank you

TJ Electrical
M: 07984 012 741
W: tjelectrical.uk.com

On 11 Sep 2013, at 19:04, “gunner holmes” email@hidden wrote:

All I can do to add to this is to give the URL where I got this info. It is still easier, to me, than other methods talked about.

How to Preload an Image


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options