Many scripts load at the top of a page and freeze rendering, even though they aren't needed until later — chat widgets, analytics, sliders. Deferring tells the browser 'load this, but wait until the page is drawn.' Think of it as letting guests in before the band finishes tuning.
The playbook:
—
1. Find a script tag in your HTML, like <script src="chat.js">.
—
2. Add the word defer: <script src="chat.js" defer>.
—
3. Reload and click around to confirm nothing broke.
—
4. Repeat for each non-essential script.
—
5. Leave critical scripts alone if removing them breaks the layout.
Defer keeps the script's order intact, so it's safer than the alternative 'async' for most cases.
Try this: Add defer to your analytics script first — it's the safest one to test.
Vitals 101
@CoreVitals101
Defer JavaScript That Isn't Needed Right Away
This post was published in the Telegram channel Vitals 101 (@CoreVitals101). All its posts are on the channel page.
Open on Telegram