Scripts hold up the first view of the page
WarningSome work
These pages load four or more scripts in the head without async or defer.
Why it matters
The browser stops building the page for each of these scripts until it is downloaded and run. Visitors look at a blank screen in the meantime.
How to fix it
- 1
Add the defer attribute to scripts that are not needed for the first paint.
- 2
Move scripts that can wait to the end of the body, or load them with async.
- How serious is it?
- Warning
- Issues worth fixing once the errors are handled.
- How much work is it?
- Some work
- A few hours, often per template.
Further reading: web.dev: Web Vitals
Does your site have this issue?
Check a page for free, or create an account to test your whole website.