This is a discussion on "How to ensure important images load first?" within the Web Page Design section. This forum, and the thread "How to ensure important images load first? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
How to ensure important images load first?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
How to ensure important images load first?
What is the best way (if any) to ensure the most important image on my site (top banner) loads first?
|
|
|
|
#2
|
|||
|
|||
|
Re: How to ensure important images load first?
A browser loads elements in the sequence it comes across them.
If your site's banner seems to be taking its time loading, you should be looking at the size of the image and whether there would be some advantage in slicing into smaller images. |
|
#3
|
|||
|
|||
|
Re: How to ensure important images load first?
Geoff, I thought as much!
You're definitely right about the size of the file and I've thought about slicing it into three seperate images, but don't know how to reassemble in the web page. Can you point me to any help with that? thanks Snappy |
|
#4
|
|||
|
|||
|
Re: How to ensure important images load first?
Load the three slices into the same div.
Float them all left with no padding or margin and they should butt up against each other. |
|
#5
|
||||
|
||||
|
Re: How to ensure important images load first?
You can use JavaScript to "preload" the important images. I'm not too sure how functional it would be, though.
|
|
#6
|
|||
|
|||
|
Re: How to ensure important images load first?
I had three slices, two side by side and one along the bottom...
The ones side by side are fine but there is a gap between those and the one beneath. The top two images are 159px high and the bottom one is 41px high. Can you help?
|
|
#7
|
|||
|
|||
|
Re: How to ensure important images load first?
Need to see the live page to see what you have done.
|
|
#8
|
|||
|
|||
|
Re: How to ensure important images load first?
http://www.wildside-creative.co.uk/trust2a.html
It looks fine in IE (mac and PC). The problem only occurs in Firefox (mac and PC)(which makes a change I guess!). Cheers Snappy |
|
#9
|
|||
|
|||
|
Re: How to ensure important images load first?
Just been to your page which looks ok but the top image appears to be all one apart from the logo at the right.
|
|
#10
|
|||
|
|||
|
Re: How to ensure important images load first?
That's right, its two side by side and one along the bottom.
Did you look in Firefox?(Its ok in IE) There shouldn't be a gap between the two top images and the one along the bottom. Snappy |
|
#11
|
|||
|
|||
|
Re: How to ensure important images load first?
I would forget about IE 5 Mac. Oh yeah I so would. Save yourself the headache.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#12
|
|||
|
|||
|
Re: How to ensure important images load first?
Problem is in Firefox on both Mac and PC. For once IE on my mac is playing ball!
|
|
#13
|
||||
|
||||
|
Re: How to ensure important images load first?
IE 5 isn't really that bad to work with. Now 4 on the other hand, that's a regular barrel of good times.
|
|
#14
|
|||
|
|||
|
Re: How to ensure important images load first?
Had another look.
Could not see any css code to tell the images in the header to float left so that they stack up alongside and underneath each other. Some pointers: You do not have a charset defined for your page. Your img tags should end ' />' and not '/>'. Note the space before the forward slash. This is a requirement of xhtml strict. Your page fails W3C validation on 12 counts. |
|
#15
|
|||
|
|||
|
Re: How to ensure important images load first?
Right...sorted!
I put the below in the main stylesheet and nothing in the "ieonly" stylesheet
Completely wrong in IE on the mac, but I think I'm gonna have to live with that. Or am I? Can I do any more? I'm only flesh and blood afterall!! Thanks for all of your help. Stay tuned for my next newbie dilemma... Snappy |
|
#16
|
|||
|
|||
|
Re: How to ensure important images load first?
I really wouldn't beat yourself over the head regarding IE on the Mac. It's a dying breed. IE on the Mac that is.
|
|
#17
|
|||
|
|||
|
Re: How to ensure important images load first?
IE on the Mac is long dead, even MS doesn't offer it for download any more and it no longer comes bundled with the OS.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Tags |
| img, load, order |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Forcing JavaScript to load before images? | JennyChaos | Starting Out | 14 | Jul 13th, 2007 23:02 |
| how can I ensure that require form fields are filled?? | uddin | PHP Forum | 5 | Apr 16th, 2007 13:54 |
| HELP!!! Images won't load IE 6 | Lilas | Graphics and 3D | 1 | Dec 23rd, 2005 18:08 |
| Pre-Load Images | WiseWizards | JavaScript Forum | 25 | Jul 20th, 2005 17:28 |