Preload next image?

geronimo1000

Joined: 2004-08-04
Posts: 1
Posted: Wed, 2004-08-04 20:54

Would it be a waste of bandwidth if the next image was loaded in the background while someone was viewing the current image? This way users might not spend as much time waiting for images to load? Maybe it could be an configurable option for the admin? Just a thought...

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2004-08-05 04:44

Gallery does not preload next images but uses the link tag.
an example from my site is:
<link rel="last" href="http://langleycom.com/ipw-web/gallery/daver/BW_cabin_wall" >

Some browsers like Mozilla supports the Prefetch link tag. When Mozilla sees this tag it will retrieve the href into it's cache. Perhaps others browsers will support this in the future.

 
rogermh

Joined: 2005-01-09
Posts: 102
Posted: Thu, 2005-09-29 02:03

I would really like this feature to be added. My Gallery2 runs on a home server and so my uploads are capped at around 300kbps or so. Pre-loading of the next image would really help speed things up.

I've searched through the Feature Requests and did not find anything like this. If it's OK with the devs, I'd like to go ahead and file a Feature Request for this.

BTW, the latest version of Simple PHP Gallery has this functionality (from their website: "Image precaching - significantly improves the appearance of speed when paging through images.") so perhaps things wouldn't have to be written from scratch.

 
rogermh

Joined: 2005-01-09
Posts: 102
Posted: Thu, 2005-09-29 02:05

Arggghhh...this was meant to be a Gallery2 post. Sorry. Can somebody move it to the Gallery2 forum please?

 
HaveFun
HaveFun's picture

Joined: 2003-10-21
Posts: 23
Posted: Thu, 2007-03-29 13:20
floridave wrote:
Gallery does not preload next images but uses the link tag.
an example from my site is:
<link rel="last" href="http://langleycom.com/ipw-web/gallery/daver/BW_cabin_wall" >

Hi!

I'm using G2, and it doent seem to habe a rel="next" or rel=prepetch.

Has this been removed from G2 (standard-theme) ?