youngoat (youngoat) wrote in fotobilder,

  • Music:

Random idea: preloading images.

As many people know, using javascript you can preload an image by doing something like:

var picture = new Image();
picture.src = '';

I was thinking it might be cool for layouts to be able to use this to preload the next (and possibly previous) pictures when you're viewing the "single image" page. Then when you move on to the next image, it will already be in the browser cache and therefore load instantly. So I guess I'm suggesting that a couple properties (next_image_url, prev_image_url) be added to whatever s2 class is responsible for the single image view... That is, if people are interested in the idea... =]

I stole this idea from Windows XP's integrated picture viewer by the way. It seems to start loading the next picture before you click next.

  • 302: lj_dev

    In the interests of consolidating all FotoBilder development-related discussion, we're going to be closing down this community. The same…

  • Development stalled?

    Is the development of Fotobilder held? Stalled? I am asking because there is no activity on the community and there is no link to the Fotobilder…

  • (no subject)

    Does FotoBilder works with Apache2? I installed all the required modules on my debian sarge, and when I restart my apache server, it dies horribly…

  • Post a new comment


    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic