View Full Version : How do I change order of element loading?
02-19-2005, 11:18 AM
I have some pages with a js to include content from a news site. It works fine, but the page does not display until all content is downloaded and rendered.
Without the js, the text is displayed first while the graphics are downloaded last.
How can I set it up so that the text is displayed while the js is still downloading? Layers? I know the width, but the length is variable.
03-20-2005, 09:00 PM
I put the .js in an empty page, then iframed it on the original page. Text first, graphics next, then the pokey .js news site follows on its own schedule.
03-21-2005, 11:41 AM
CSS would be a better way to do that ;)
03-21-2005, 04:03 PM
I'll bite. How would you do it?
03-21-2005, 06:51 PM
Here's an example I'm working on for my day job
http://www.linktradeforum.com /ETJ/test.htm (take out the space)
03-22-2005, 06:33 AM
I don't see where you called a script. Are you telling me that using layers will control it?
You do have all of the body text packed right up front. I can see how the css works for cleaning up the code.
I see that you used BACKGROUND-IMAGE: in the css. There are a few <td background= in the xhtml. I don't think that will validate. Seems to be O.K. in the css though.
I've been slowly converting to css one step at a time. I'll keep working at it to reduce the code in the html.
03-22-2005, 07:38 AM
Yes, you are seeing exactly what it looks like you are seeing. The page is a template still in dev for my day job, so lots of things are not complete yet.
In a nut shell, the code in the page can be placed where ever you want it and then the CSS tells it where to go on the screen. It makes it easier to get the spiders to your content without digging through everything else.
vBulletin v3.0.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.