Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jan 2008
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts

    what layout is more faster to the browser to parse ?

    Hello all
    from the html point of view what is more faster to the html engine to parse
    GUI layout that is based on tables or one that is based on div's ?
    thanks for the help

  • #2
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    Quote Originally Posted by umen242 View Post
    Hello all
    from the html point of view what is more faster to the html engine to parse
    GUI layout that is based on tables or one that is based on div's ?
    thanks for the help
    I have always thought it is tables that takes longer, and that's why the move to div's.
    Leonard Whistler

  • #3
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    divs/css will be faster.
    Because:
    -if you use an external css file it only needs to be loaded once
    -less code is involved with divs.
    -The browser makes less assumptions with divs
    divs are not only faster, but will render correctly in more browsers then tables. Note that the page download time is what people will notice. Browsers will make very little difference rendering tables vs divs. There are also many different advantages to using divs.

    In my mind: Divs are to align and style blocks on a page. Tables are to show data that should be shown in a table(price list, user list,...)
    Why not thank me?

    http://adamsworld.name

  • #4
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Tables rendering requires dynamic resizing of all rendering boxes depending on the size of the content in each individual box, unless you make sure the tables use fixed layout. That means tables layout will in general be slower than your alternatives. A fixed table layout would probably have about equal speed to a block layout.

    I think there's a considerable difference in performance for table layouts in the browsers - I recall there being a few table nestings that make Gecko stall, with no performance problem seen in Trident, and the other way around.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards


  •  

    Posting Permissions

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