Log in

View Full Version : Firefox slow to render large no. of TD rows having HTML elements



kb789
08-04-2011, 03:14 AM
Hi,
I am currently having an application that retrieves data of around 2000 rows from database.
These rows will be populated into a HTML table, where the application loops through the recordset and produces the TD cell and its elements repeatedly via loop the recordset, eg:


<TABLE>
<TR>
WHILE RECORDS EXIST {
<td>
<input value="<%=strEmpName%>">
<td>
}
</TR>
</TABLE>

I run this page via Firefox and realized the page takes around 1 minute to load, where the browser freezes until the data is loaded. However, in Chrome and IE, the loading time is alright. In Firefox, if I were to removed the Input element from cell and directly evaluate the expression's value, it will be fast.
Any idea how to resolve this issue for Firefox?

JShor
08-04-2011, 04:03 AM
That's a massive amount of HTML elements for any browser to render. One solution to this is to break up your results using pagination.

Unfortunately, an issue like this is limited by the amount of memory the web browser has and cannot be fixed.

DuncanCox
08-04-2011, 05:47 AM
I Agree with JShor. Pagination will make easy your problem.