← All resources
Scripts

Defer render-blocking scripts

Add defer/async so scripts stop blocking first paint and Total Blocking Time drops.


A synchronous <script> in the document blocks HTML parsing until it downloads and executes, delaying first render and inflating Total Blocking Time / INP.

How to fix it

<script src="{{ 'theme.js' | asset_url }}" defer></script>
<script src="https://cdn.example.com/analytics.js" async></script>
More on Scripts
Run a check → Browse resources