www.webdeveloper.com
Results 1 to 4 of 4

Thread: Loading priorities

  1. #1
    Join Date
    Jan 2004
    Location
    Baltimore, MD
    Posts
    78

    Loading priorities

    Is there a way to set priorities to images? I want certain images on my page to load before other do. Is this possible?

    Thanks,
    Dave

  2. #2
    Join Date
    Nov 2002
    Posts
    4,473
    Images in HTML are loaded in the order that they are located in the web page file.

    I suppose that you could use a placeholder in all of the HTML image tags and then use a preload script that you could order however you want. Then onload you would change all the HTML images SRC to the right picture in any order you wanted. The apparent load time would be longer because of the js to change all the image tags. But then people with js disabled would see a whole lot of nothing.

  3. #3
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    JS can be used to preload images in a different order in the head section. If the people do not have js enabled they will load it in the html order.

  4. #4
    Join Date
    Jan 2004
    Location
    Baltimore, MD
    Posts
    78
    Oh..so just re-ordering the way things are in the html file should do the trick?

    -Dave

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles