HTML validation · File size

Resource over 2MB

This page loads a JavaScript file that is over 2MB. Googlebot may stop fetching it, so whatever the script adds can be missed.

How this page is built

This page loads /assets/large-script.js, which is over 2MB because of a long comment. The only thing the script does is update the next paragraph.

The large script has not run.

Why it matters

Googlebot applies a size limit to each file it fetches, including scripts and stylesheets. If a resource is larger than that, Google may only see part of it, so content or links added by the script can be missed when the page is rendered.

Large files also slow down every visitor, especially on mobile connections.

How to check it

Open the network panel in your browser’s developer tools and sort the files by size. Crawl tools that fetch page resources report large files. Look closely at bundled JavaScript and inline images in CSS.

How to fix it

Split large scripts into smaller files that load only where they are needed, remove unused code, and minify and compress what remains.

Make sure important content and links are in the HTML rather than depending on a large script.

Back to all tests