-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Head childs doesn't have to be evaluated in Maximum Child Elements #6806
Comments
So it seems we're only looking for render relevant nodes under |
The original goal of the audit was to raise awareness to apps that create excessive DOM trees which can put a burden on layout/style recalcs and the general advise we got from the Chrome team was < 60 nodes per parent. I'm not sure there was any reason in particular we included |
The other thing might be to avoid loads of markup in head. Means more markup to parse on a slow mobile connections, possible blocking inline scripts and other resources, and a slower first render. But those things could be captured in other perf audits. |
Yeah lets only include elements inside the body. |
I would be happy to have a look on this issue if no newcomer is interested |
Sounds good @midzer thanks! |
Fixed by #7241 |
Provide the steps to reproduce
What is the current behavior?
Right now is failing due to Maximum Child Elements, 79, which is bigger than the 60 recommended. The parent element is the head.
What is the expected behavior?
Most of the elements placed in the head are metas, pre-connects, fetch's... As the number of the elements in the head doesn't affect to rendering performance, they have to be omitted in this check.
Environment Information
The text was updated successfully, but these errors were encountered: