Performance of dom.findUp is very slow
See original GitHub issueAs you know, the performance of dom.findUp is really poor. However it is used very heavily across the various rules/checks.
AFAICT, you could use the DOM API of element.matches()
which should be substantially faster. (browser support is good).
You basically have written the polyfill for it, so you can fall back to your current implementation if ('matches' in element)
is false.
Good site to reproduce on: https://www.mlb.com/ Screenshot of the color-contrast rule taking 26s to complete. (All of the time is spent in the querySelectorAll within findUp)
Issue Analytics
- State:
- Created 6 years ago
- Comments:19 (13 by maintainers)
Top Results From Across the Web
Why is the DOM so slow? | Handmade Network
first, no matter what I do in my tests, getting data into the DOM (not doing a layout and render!) is about 3x...
Read more >Large DOM Tree Slowing Down jQuery Click Events
The problem I'm having is that the click events get slower and slower as the DOM tree grows larger. The delay is currently...
Read more >Traversing DOM very very slow - Oracle Communities
I've an XML Document quite big (240K) with a root, 800 first level nodes and an average of 6-10 second level nodes for...
Read more >gulfstream result
On this page, you'll find up-to-date racing results from ... it took 517 ms to load all DOM resources and completely render a...
Read more >Things Heard And Seen Imdb - altiningramfiyati.com
Directors Shari Springer Berman Robert Pulcini Think you re a movie buff The ... odkrywa że zarówno jej mąż jak i nowy dom...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is a fantastic improvement. It gets the time for the mlb.com home page down to around 14s from 28s - that is an improvement of 50% overall…thanks for the help @paulirish @patrickhulce and @kdzwinel
I just tested and on https://www.mlb.com/yankees/schedule/2018-03` axe runtime is down from 60s+ (LH has a 60s timeout for gatherers) to 29s 🎉