Results 1 to 3 of 3

Thread: Should I load all gifs on page load?

  1. #1
    Join Date
    Jul 2005
    Posts
    101
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Should I load all gifs on page load?

    Pages on my site give lists of businesses in the area and I use flag gifs to indicate the labguages spoken in the business. If I have 62 businesses all of whom speak English and Spanish, then I have 62 copies of each flag. The business entries are in a table with relevent img src in a col after business name.

    Do the browsers go back to the server for each img src to download the flags or are they smart enough to know they already have downloaded the image?

    Will the page load faster if I use a script to download all the images on page load?

    Billy

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    No, they know that they've already downloaded the image and use the one they've cached.
    The images are already downloaded on page load. By default, images are downloaded when they are viewed. In your case, this is on page load.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jul 2005
    Posts
    101
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Thanks, Twey

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •