Guides · Performance

Number of 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

The number of <script src> tags anywhere in the HTML the server sends. Scripts added later by other scripts are not counted.

Why it matters

Every script is a request, a download and a parse on the main thread. Many small ones usually means plugins and tags added over time that nobody has reviewed.

How many JavaScript files is too many on a page?

Remove what is no longer used, bundle your own scripts, and load third-party widgets only on the pages that need them.

List them

curl -s https://example.com/ | grep -oE '<script[^>]+src="[^"]+"'

Related tools

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.