Needs the parsed document or must preserve order
- Use
deferfor an external classic script; deferred scripts run in document order after parsing.- What to verify
- The script still runs before code that expects it, and page controls work.
Find scripts that delay first render, choose async or defer based on dependencies, and verify the change without breaking page behavior.
A classic script without async, defer, or type=module pauses HTML parsing while it loads and runs. Move nonessential scripts out of that path: use defer when execution order matters, and async only when a script is independent. Confirm the browser still renders the main content and that dependent scripts run in the right order.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
<head> and has neither defer nor async. As of Lighthouse 13 that audit moved into the Render-blocking requests insight.<head> without async, defer, or type=module.MDN separates the two: scripts are not render-blocking by default. A script without type="module", async, or defer blocks parsing, not rendering, and only scripts in the document <head> can block rendering. Web.dev's guidance is that blocking the parser can still delay first render, because the browser must wait for the CSSOM before running the script. Fix the parser-blocking behavior when the trace shows it delays content users need.
defer for an external classic script; deferred scripts run in document order after parsing.async; it downloads in parallel and executes as soon as it is ready.type=module; module scripts defer by default.<script defer src="/assets/vendor.js"></script>
<script defer src="/assets/app.js"></script>If the main delay is an oversized bundle rather than parser blocking, see the JavaScript SEO guide. For slow server delivery before scripts start, see slow TTFB.
Record the affected URL, device profile, first useful content, script request waterfall, and any relevant Core Web Vitals field data.
Add defer or async only after checking dependencies. Avoid changing several vendors and application bundles at once.
Repeat the trace and exercise menus, forms, navigation, analytics consent, and any conversion action the script supports.
Use PageSpeed Insights or Search Console's Core Web Vitals report to see whether real-user performance improves. Lab traces help explain a change; they do not guarantee a ranking change.
2 questions people ask next, answered from the sources on this page.
No. Use it only for scripts that do not depend on other scripts or a particular execution order. Use defer when order matters.
No. It avoids parser blocking for external classic scripts, but a large or long-running script can still delay interactions after it executes. Measure the page and consider reducing or splitting code.
Run the free audit, then approve the fixes. Every change can be undone.