A lot of time spent in query_selector
Categories
(Core :: DOM: CSS Object Model, enhancement, P3)
Tracking
()
Performance Impact | low |
People
(Reporter: vchin, Unassigned)
References
Details
(Keywords: perf:pageload)
Reporter | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Updated•6 years ago
|
Reporter | ||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Reporter | ||
Comment 4•6 years ago
|
||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
I'm categorizing this as "pageload" since it looks like (in comment 3's profile) the expensive chunk of querySelectorAll calls all happen before nsDocument::UnblockOnload is called.
Comment 9•6 years ago
•
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #3)
This page also takes forever to load on Chrome desktop fwiw.
Hmm, it loads pretty quickly in Chrome-on-Desktop for me. (in normal mode and in their RDM mode)
It also loads quickly in Firefox-Nightly-on-Destop (even with content blocking disabled).
The key place where I'm seeing a difference is:
- Firefox on Android (with no content blocking), which takes 4-5 seconds for our blue loading bar to stop animating on load & reload.
...vs: - Chrome on Android, which takes 1-3 seconds for its blue loading bar to stop animating on load & reload.
I can dig into what the tracker script is trying to do if you think it'd be
helpful
Aside from getting content blocking enabled, I think most actionable thing we can do here would be to discover if there's a particular operation during the pageload here (whether in querySelector runtime, or something else) where Chrome is beating us perf-wise, and then see what we can do about closing that gap.
Updated•4 years ago
|
Updated•3 years ago
|
Updated•2 years ago
|
Description
•