Skip to content

Perfomance issue onLoad on "larger" page #248

Open
@p10tyr

Description

I have a page load with a table, in the morning its about 40 elements, towards the end of the day it grows to 200.

I have other scripts running there but I tracked down that timeago "blocks" the page until all the elements are updated... 👎

"blocks" - Cannot scroll the page or click on any element for 1-3 seconds

I think some optimization may be required as the main page does not mention any limits.

This page could potentially shows thousands of rows with timago applied

Sameple of single row

HTML (after run)

<td data-order="10/28/2015 12:42:31" data-search="10/28/2015 12:42:31" class="sorting_1">
  <abbr class="timeago" title="October 28, 2015 - 12:42:31">9 minutes ago</abbr>
</td>

Server C#

<abbr class="timeago" title="@ex.DateTime.ToString("yyyy-MM-ddTHH:mm:ssZ")">@ex.DateTime.ToString("MMMM dd, yyyy - HH:mm:ss")</abbr>

On this occasion you can see Chrome reports 1.3 seconds but there is still the update dom afterwards I think. (the monitor shows along time, im debugging so it takes long to start but afterwards it runs as normal)

74 rows @ 1.3 seconds ?

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions