Scripting: How do I pre-cache images? Using DW?

started by Bradanderson on Feb 24, 2005 — RSS Feed

Bradanderson Bradanderson
Posts: 10

Hello there,
I'm completely NOT a programmer or JS writer, so please keep that in mind with your replies. I have a site dedicated to photography, and was wondering if it's possible to pre-load images on the page before the actual image to speed up viewing time? I saw the article published about saving time which suggests this, but there wasn't any coding or method to do this. I am using DW for my html, could someone please suggest a way to pre-load or pre-cache these images if it's possible?
Thanks,
Brad

Joe Gillespie Joe Gillespie
Posts: 528

Yes, it is possble to preload images but probably not what you are thinking of. If I go to your home page, or any other page on your site from a link, when the browser loads the page it requests the images from the server. Apart from keeping the file size down for faster loading, there is no way to make the images load any faster, it takes a certain amount of time. You can't have the images there waiting for the page just ask you can't have an echo before you shout.

You can have a javascript to preload the images, but you still have to wait that amount of time before they appear.

What you can do, is preload images for the *next* page, so that when you go there, the images are waiting. So, if you had a pageful of text about yourself that people had to read and were preloading the images in the background, when they hit the <next> button, they would get instant pictures. Reading the text is masking the passage of time. To do this you have to have a predictable route through you site, as in a slide show.  

This example preloads the next picture whilst you are looking at the current one

http://www.wpdfd.com/wpdslid2.htm

Here is a CSS-based slide show which preloads images into an invisible div until they are required.

http://www.wpdfd.com/editorial/thebox/example12.html

The *simple* way to preload images is to put them on a page but set their size to 1 x 1 pixel. When you go to a subsequent page, the images are already in the user's cache and display instantly.

Play...

Chris Strupp Chris Strupp
Posts: 13

Thanks for elloborating, I figured this was the case I have only use prre cahing on sub pages and not indexes.

Digital Extreme Media Group

Krystine Tawnie Krystine Tawnie
Posts: 28

Dynamic cache (also known as WebSphere dynamic cache service) is a WebSphere service that is enabled on an application server by default. It supports caching of servlet and JSP responses, WebSphere Commands objects, Web services objects, and Java objects. As an enterprise application on the WebSphere application server, Web Content Management is able to use this service.


Search engine marketing company in India

Maskodok Eko Maskodok Eko
Posts: 171

Jasa SEO Profesional

TOP SEO | Jasa SEO Profesional RajaPoker88.com Agen Texas Poker Dan Domino Online Indonesia Terpercaya IDRPoker.COM Agen Texas Poker dan Domino Online Indonesia Terpercaya POKERSTAR88.com Agen Texas Poker Dan Domino Online Indonesia Terpercaya D

Kokokmas Kokokma Kokokmas Kokokma
Posts: 104

You know, Sim City Societies had a lot of potential, it was a great concept that was horribly developed and lacked any kind of depth. The idea of individualize buildings functioning independently playing its role in a largely diverse and thriving city.

The new Sim City appears to be the classic Sim City gameplay we saw with SC4, combined with a far better developed version of the Societies concepts. Looking great guys, don't let us down.


You must login to reply