Forum Moderators: open
the images are in cells and the page doesn't appear until all the images are loaded, is there a way to make the page appear after on image has loaded ? or give one image priority so the page appears faster ?
I would appreciate help with this it is doing my head in :(
Thanks as always in advance
If you're not talking about the first page, you can pre-load the heavier images on a previous page, so they are instantly available from the cache (see the generic javascript [webmasterworld.com] thread.)
You can also use several layout tables instead of just one large layout table. That is, break your table into several smaller ones. Most of the time, a browser will first render the table that appears at the top of the HTML.
I'm not sure about delaying the text util the images have loaded -- in fact, I usually want the exact opposite effect! It keeps people on the page instead of impatiently clicking away.
If the graphics and text/content share table cells, try putting the graphics inside single celled tables, nested inside the content cells... (But do try the height/width suggestion first... quicker, easier and takes up less space in the code!)
I have to agree with tedster - I usually want the text to appear so the visitor has something to look at while the graphics are downloading. I generally do not combine graphics and images in the same cell and have found that the graphics download afterward. I also always use height and width and I split tables when I can - rather than having one table with four rows, I have four tables with one row each. As for images which can wait, I use an "onLoad" event to hold them until last.