Results 1 to 3 of 3

Thread: Controlling Image Load order

  1. #1
    Join Date
    Apr 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Controlling Image Load order

    Hi, I am trying to control the image load order on my site. Because I have heavy javascript for all my images, they load before the main logo image which takes about 30 seconds to load. Is there a way to reverse that?

    http://lilyalayeva.com/new/demo/index.html

    Thanks!

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Browsers load things in the order that they are given in the source code. If Javascript is slowing down the page, then the usual method to fix this is to place the Javascript code lower in the source. So this means the best position is to place it immediately before the </body> tag in many cases. But sometimes that can change things as well, so be creative to find a way to make it work.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Apr 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hmm. Thanks. I think that worked. I didn't realize it was ok to put the script that is supposed to go within the <head></head> tag right into the body tag.

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
  •