Render-blocking scripts
One of the checks in every audibot report. This page says exactly what audibot reads, what passes, and how to fix it.
What audibot checks
External <script src> tags before <body> that have neither async nor defer and are not type="module".
- Pass
Two or fewer.
- Warning
More than two.
Why it matters
The browser stops building the page at a plain script tag until the script has downloaded and run, so each one in the head delays the first paint.
How do I eliminate render-blocking JavaScript?
Add defer to scripts that need the document but not before it is shown — that is most of them; they still run in order. Use async for independent scripts such as analytics, where order does not matter.
HTML
<script src="/app.js" defer></script>
<script src="https://analytics.example/a.js" async></script>Related tools
- Website performance checker — Review homepage response time, HTML size, compression, redirects and scripts.
Other checks in Performance
Performance in the methodology ·All guides
This check is one step of the website launch checklist.
Check your site
audibot runs this check and every other one in a single audit, and publishes the report with a recommendation for each finding.