0

Pretty much as the title says, does a non-fixed table-layout share the same performance issues as that of a similar HTML table?

3
  • 2
    What do you mean by non-fixed?
    – BoltClock
    Aug 4, 2012 at 15:19
  • 3
    And what are the performance issues you speak of? Details please.
    – j08691
    Aug 4, 2012 at 15:21
  • Can't say I've had any problems with tables before but I want to look into the claims like stackoverflow.com/a/1364234/1059070 and how HTML tables compare to CSS ones
    – arcyqwerty
    Aug 4, 2012 at 15:27

1 Answer 1

1

The problem with non-fixed tables is that to determine the width of a column, all cells of that column have to be loaded. This only matters if…

  1. … you have a table with several kilobytes or megs of data
  2. … you do a table layout on a large page (wrong for several reasons)

In a sense, this is similar to using CSS. However, the HTML will sometimes be displayed before the style is applied, so the page loads fast, but it takes roughly as long until you see the correct layout.

Unless you have a very large table, using the html table is probably always better, as it is more idiomatic. If you have to create a large table and loading time bothers you, benchmark to get that split-second difference.

So my answer to your yes/no-question is: No, unless you want to see the same table in both cases.

Note: The last time I looked at a large html table (~3000 rows, loading time ~4sec.) it started displaying before it was fully loaded. This may not be the true for older browsers

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.