Results 1 to 7 of 7

Thread: preloading images does NOT work??

  1. #1
    Join Date
    Jan 2010
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default preloading images does NOT work??

    never mind, answer given
    Last edited by yoni; 01-08-2010 at 09:13 AM.

  2. #2
    Join Date
    Oct 2008
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    preloading images only really helps for a site that uses rollover images or has images that show later after a script triggers them. when you initially load the page, the images are still downloading and doing a preload has no effect.
    Also, you're missing a img6 = new Image(); to match with the last image in your script.

  3. #3
    Join Date
    Jan 2010
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ok fixed the img 6, but you're saying there's no way to get the page to load ALL it's images before displaying?

    I see websites that have a good amount of images but don't take time to show...

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,926
    Thanks
    43
    Thanked 3,190 Times in 3,154 Posts
    Blog Entries
    12

    Default

    That has more to do with the byte size of the images, and of course the bandwidth, but since the bandwidth should be about the same for you personally regardless of the site you are viewing, it would be the byte size of the images.

    For instance, you have:

    /images/banner.png @ 203 KB (207,263 bytes)

    This image could be saved as a JPEG (.jpg) and then be optimized to say about 70% quality. It would still look really good and come in at about 19,000 bytes or 9.2% of the original. I know you have that one transparent corner, but that could be managed by matching it up with its background in various ways.

    Anyways, preloading will only help as CCH has indicated, although you could preload with a progress bar and hold back page display until key images are available. With an image that size though, it would take some time on a slower connection. Many people won't wait.

    On a more positive note, with a fast connection, the page doesn't take all that long to load anyway.
    Last edited by jscheuer1; 01-08-2010 at 09:09 AM. Reason: spelling
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jan 2010
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks for the help!

    I appreciate it.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,926
    Thanks
    43
    Thanked 3,190 Times in 3,154 Posts
    Blog Entries
    12

    Default

    Here's one possibility:

    Attachment 3099
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Jan 2010
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yeah I understand what you were talking about, I had an image like that earlier on. It's not a big deal since it will be replaced by a flash image soon, just wanted to find out if I could make it appear with the page all at once.

    wouldn't it be nice if we could all use 1 browser with one image type to do everything?

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
  •