PDA

View Full Version : HTML site preloader


Ross
04-01-2007, 06:13 PM
Hi guys.

I'm doing a website for a friend. All is going well but I've hit a couple of problems, the first I think is pretty easy to solve but I can't for the life of me remember what to do;

I want some of the main images in the site (logo, background etc) to remain in cache so that when the user flicks pages it doesn't need to load them.
I tried a CCS style form but placing the background image (a white square basicly) exactly where I want it, isn't easy.

Secondly I want to use a preloader on the site, that preloads all the pages first. I have a series of images that I want to load as part of the progess indicator & want some to apper at say 20% another at 30% etc. Once all the background stuff is loaded it would then automaticly move on to the index page.
I've had a play in flash & can get the series of images to play but have no idea how to get this to intergrate with the HTML.

Thanks in advance.

Ross

Ross
04-06-2007, 03:58 PM
Anyone know or can point me in the right direction?

Pegasus
04-08-2007, 02:36 AM
Once an image is called up by the browser, it automatically becomes cached, even if the same image is set on different pages. They'll remain in the cache until it's cleared or, I think, until the cache is full and starts to delete information.

You can't preload an entire site, that I know of.

Have you considered using server-side includes for the parts of your page that are carried across all the pages?

Peg