Speeding up web page HTML long tables
by Mountain Computers Inc., Publication Date: Thursday, October 3, 2019
View Count: 312, Keywords: HTML, MOD function, Speed, Optimize, Hashtags: #HTML #MODfunction #Speed #Optimize
If you are displaying a long table like in our Blog, you need to realize that the page will not display until the table is fully loaded and rendered. So to speed things up, keep track of your row count, and then given a MOD function to see if 20 rows have been created, then close the table to break it, and rebuild the table.
That is a trick we have used for years. It creates a thick line between the table breaks, yet it works, and in order to keep the columns aligned at any screen size, change the table TD widths from auto to percentages. just look at the HTML code we have in this blog to see.
Here is the logic code to do what I describe. open the table with the same HTML you did to start the table.
if row_count mod 20 = 0 then
close the table html
open the table html
more to come...
if you found this article helpful, consider contributing $10, 20 an Andrew Jackson or so..to the author. more authors coming soon
FYI we use paypal or patreon, patreon has 3x the transaction fees, so we don't, not yet.
© 2021 myBlog™ v1.1 All rights reserved. We count views as reads, so let's not over think it.