Results 1 to 6 of 6

Thread: Page Load

  1. #1
    Join Date
    Jan 2006
    Posts
    419
    Thanks
    2
    Thanked 16 Times in 16 Posts

    Default Page Load

    Hi,

    Can anyone shed any experience of controlling the order of page elements loading on a web page, as I want to ensure the page loads in an order that is pleasing to the eye.

    Thanks

    James

  2. #2
    Join Date
    Feb 2004
    Posts
    4,903
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Quote Originally Posted by jimlewis
    Hi,

    Can anyone shed any experience of controlling the order of page elements loading on a web page, as I want to ensure the page loads in an order that is pleasing to the eye.

    Thanks

    James
    A HTML document is rendered from top to bottom AFAIK, you cant control it...
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  3. #3
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 24 Times in 24 Posts

    Default

    Quote Originally Posted by Warren Ashcroft
    A HTML document is rendered from top to bottom AFAIK, you cant control it...
    You can however use CSS to reposition the elements (to a certain extent) allowing things to appear in a different order on the page than in the source.

  4. #4
    Join Date
    Feb 2004
    Posts
    4,903
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Quote Originally Posted by nick
    You can however use CSS to reposition the elements (to a certain extent) allowing things to appear in a different order on the page than in the source.
    Yes, but the entire page would need to load before that happens, the guy wants to control how it loads...
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  5. #5
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 24 Times in 24 Posts

    Default

    Quote Originally Posted by Warren Ashcroft
    Yes, but the entire page would need to load before that happens, the guy wants to control how it loads...
    The documents html and css would need to load, but this should happen pretty fast, the css would then be affecting the positions of the elements the rest of the page's media loads into.
    It's not a great solution I agree, but it does have one or two possibilities

  6. #6
    Join Date
    Oct 2005
    Posts
    256
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If you look at ebay, they have changed it so that the auction listing appears before the left hand navigation. This is easily possible...

    They do this by sending the page in the following order:

    They send the Header DIV

    They send the auction list (with margin-left: 200px). It is rendered progressively as each row is a DIV with a left margin rather than a table.

    They then send the left navigation which is float: left;

    You just have to write a conceptual model in your brain and load order in your head, arrange it in the HTML page and then adjust the CSS so that it renders. Test it with one of those slow down http proxies.

    To guarantee instant CSS, stick a <Style> section in your page header with the most essential styles (ie layout) and load the rest in with the <link> tag later.

    Note: Avoid tables - they only load in complete lumps. Stick to discrete elements like table rows implemented as a DIV containing SPANs.

    Come to think of it, I've been doing this for a good 5 years now!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Load balancing WAN connections
    By Lord1e in forum General Technical Support
    Replies: 5
    Last Post: 24th May 2006, 04:28 PM
  2. Load Balanace Access 97 ( lol )
    By Lord1e in forum General Technical Support
    Replies: 2
    Last Post: 23rd May 2006, 04:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •