Forum Moderators: open

Message Too Old, No Replies

Can I force html page to download in an order?

problem with page's loading order!

         

asahmed

11:13 am on Feb 24, 2007 (gmt 0)

10+ Year Member



Hi,

I have a problem with my site, I have a skyscraper that I've made it with flash, it countain almost 10 pics (resolution 158*600) and size~400kb.

the proplem when I visite my site, the browser load the flash skyscraper 1st then the header and menu, I want know if there's a way to change the page loading order, to make my header and menu appear 1st then the flash skyscraper cuz it's just an animation in the left side of the site that doesn't countain links.

So please someone help me

rocknbil

12:01 pm on Feb 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



One way is to use a Javascript images preloader that preloads them in the order you want. You execute the script inline or via window.onload().

kaled

1:55 pm on Feb 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The page requests resources (such as images) in the order they appear in the source code. If you want to change that order, you must reorder the items in the source code. You may use CSS to ensure that they appear in the required locations.

Having said that, whilst requests to external resources (such as images) are made in the order they appear in the source code, those requests may be completed in any order.

Kaled.