I have lots of images on a html page - how can i make certain ones load first (or certain ones load
Posted
by imlostmike
on Stack Overflow
See other posts from Stack Overflow
or by imlostmike
Published on 2010-03-25T08:30:43Z
Indexed on
2010/03/25
8:33 UTC
Read the original article
Hit count: 370
html
|JavaScript
Hi,
i have a page with the main content area being big thumbnails, but elsewhere on the page are about 100-200 other (smaller) thumbs that are not important but must still show.
What ways do i have to make the main ones show first (or the unimportant ones show last)?
I was thinking of these ways:
JS load: on page load (once it has finished loading), use a jquery's append() (or whatever other way) to write the html with the image code
Set all unimportant images inside a div with style="display:none;". Then once the page has loaded, use JS to set it as visible
what do you think is the best way?
© Stack Overflow or respective owner