JavaScript defer checker
Find JavaScript tags and display their defer and async attributes.
Last submissions
What this checker does
The JavaScript defer checker scans a webpage, finds its script tags, and displays whether each one uses the defer or async attribute. These attributes control when and how a script is downloaded and executed relative to the rest of the page.
The result helps you see which scripts may block rendering and which ones are loaded with deferred or asynchronous behavior.
Why script loading attributes matter
By default, a script tag in the document causes the browser to pause HTML parsing while the script is fetched and executed. If the script is large or the network is slow, the page can appear blank or unresponsive until the script finishes. This is known as render-blocking behavior.
The defer and async attributes change that behavior:
defer: the script is downloaded in parallel with parsing and executed after the document has been parsed, in order. It does not block rendering.async: the script is downloaded in parallel and executed as soon as it is available, which may interrupt parsing. Order is not guaranteed.- Neither attribute: the script blocks parsing until it is fetched and executed.
Choosing between them depends on whether the script depends on the DOM, whether order matters, and whether it is critical for initial rendering.
Reading the results
The tool lists the scripts found and their attributes. Embedded scripts and external scripts may both appear. For each script, you can see whether it is deferred, asynchronous, or neither.
The checker does not measure actual load times or determine whether a script is truly render-blocking in a given browser. It reports the declared attributes, which are a strong indicator of intended behavior.
Practical guidance
- Use
deferfor scripts that need the DOM and whose execution order matters, such as analytics or UI initialization that depends on page structure. - Use
asyncfor independent scripts that do not depend on other scripts or the DOM, such as some third-party widgets. - Keep critical scripts small: if a script must run before rendering, minimize its size and dependencies.
- Audit third-party scripts: embeds often add their own script tags. Check whether they support defer or async.
Limitations
The checker examines the HTML for the URL you provide. Scripts injected by other scripts after page load may not appear. The tool does not execute the page, so it cannot confirm real-world timing or whether a script actually blocks rendering in practice.
Use the results together with performance testing tools to understand the full impact of scripts on your page.
Similar tools
Minify your JS by removing all the unnecessary characters.
Count the resources requested by a webpage.
Measure the total size of a webpage, including all of its resources.
Popular tools
Check which images on a page are missing alt attributes for accessibility and SEO.
Check which images on a page use lazy loading and which load immediately.
Measure the total size of a webpage, including all of its resources.
Check whether a page is blocked from search indexing by meta tags, headers or robots.txt.