question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Low performance DOM rendering

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior Poor performance DOM rendering. 25 records, 10 columns, 6 of them are templated. The browser uses too much CPU, if the scrollbarV is set to true the situation becoming even worse.

Expected behavior Lighter DOM and low CPU usage

Reproduction of the problem 25 records, 10 columns (6 of them templated), data is paginated server side , so only the data for these 25 records is set in “rows” property.

  • Table version: 0.7.x 4.1.0

  • Angular version: 2.0.x 2.4.1

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] all

  • Language: [all | TypeScript X.X | ES6/7 | ES5] Typescript 2.1.1

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gryolecommented, Apr 15, 2017

I have the same issue using dev mode. Just imported NgxDatatableModule and used example from get started. Loading difference is ~ 20 sec. I tried to reproduce this issue with new project (generated from angualr-cli) and difference is not significant ~ 200ms. Looks like it reproduces in larger projects.

1reaction
Tenmakcommented, Apr 14, 2017

We should re-open this…

Using the latest ngx-datatable version, It is causing a huge loading time… Since we are using Angular-CLI, every time we do a single line of code, we get the 20+ seconds time of loading (While we only have 4.5~ seconds loading time without the NgxDatatableModule import).

And since it is not really good to continue programming in production mode, is there any workaround or anything ? We are losing an insane amount of time because of this…

Read more comments on GitHub >

github_iconTop Results From Across the Web

A 20x Speedup in Infinite DOM Rendering - Medium
A 20x Speedup in Infinite DOM Rendering. An explained optimization technique of how Flicking achieved a 20x performance increase. Sometimes you ...
Read more >
3 DOM Rendering Strategies to Improve Web Page Performance
Rendering large amounts of DOM elements can also result in slow load times, laggy scrolling, page slowness and other performance issues.
Read more >
10 Ways to Minimize Reflows and Improve Performance
1. Use Best-Practice Layout Techniques · 2. Minimize the Number of CSS Rules · 3. Minimize DOM depths · 4. Update Classes Low...
Read more >
Critical rendering path - Web performance | MDN
The Critical Rendering Path is the sequence of steps the browser goes through to convert the HTML, CSS, and JavaScript into pixels on...
Read more >
Fix the slow render before you fix the re-render - Kent C. Dodds
It doesn't matter if 100% of your renders are necessary, if those renders are slow, it will still produce a bad experience for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found