Results 1 to 3 of 3

Thread: Firefox slow to render large no. of TD rows having HTML elements

  1. #1
    Join Date
    Aug 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Firefox slow to render large no. of TD rows having HTML elements

    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:
    Code:
     <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?

  2. #2
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    557
    Thanks
    8
    Thanked 66 Times in 66 Posts

    Default

    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.

  3. #3
    Join Date
    May 2011
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I Agree with JShor. Pagination will make easy your problem.

Bookmarks

Posting Permissions

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