devxlogo

Split large HTML tables in smaller ones

Split large HTML tables in smaller ones

In general, a browser can’t render an HTML table before the closing &/TABLE> tag is received. This means that the end user might wait for several seconds before a table result is displayed. The easiest way to have results appear as soon as they are available is subdivide a large HTML table into many smaller ones, which will appear in the browser as soon as the tag arrives.

If you implement this technique, keep in mind that you should apply the WIDTH attribute to each individual column, so that the columns in the many subtables will match. If you don’t do so, the browser will format each subtable in a different way, depending on the data contained in each one.Note that Internet Explorer 5.x can rendere a table even before it receives the tag. Still, you can make the rendering even faster if you specify the width of each column.

devx-admin

Share the Post: