Skip to content

JavaScript size checker. Per-bundle breakdown.

Enter a URL. We pull Google PSI's network-requests audit (script subset), split first-party vs third-party JS, and estimate parse + execute time on a mid-tier mobile.

JS breakdown
Enter a URL and click Analyze. Typical run: 25-45 seconds.
Sources used

URL is sent only to Google PSI. Digital Heroes does not log queries.

Privacy: URL is sent only to Google PSI.

§ · written guide

How to use the JavaScript Size Checker

This checker lists the JavaScript files a web page downloads and how heavy they are. It asks Google PageSpeed Insights to load the page, keeps only the script requests from the Lighthouse network audit, and splits them into first-party and third-party files. It is for developers and site owners looking for the bundles and tags that slow a page down.

Step by step

  1. Enter the page address

    Type the full URL, including https://, into the address box. Google has to load the page from its own servers, so it must be public and not behind a login or a password.

  2. Choose Mobile or Desktop

    Leave the menu on Mobile, the default, to test the throttled phone profile PageSpeed Insights uses, or pick Desktop. The same page can load different scripts on each.

  3. Run the audit

    Press Analyze. The button reads Running... while Google tests the page, which the page says typically takes 25 to 45 seconds. Wait for it rather than pressing again.

  4. Read the total and the split

    The top line gives the total JS transfer in KB with a letter grade and a verdict. Below it, the first-party and third-party boxes show how much of that weight comes from your own site and how much from other domains.

  5. Find the biggest files

    Check the top 10 by size list. Each file is tagged 1P or 3P, long addresses are shortened, and hovering over a row shows the full URL. Use the Full PSI report link at the bottom for the complete Lighthouse report.

Reading the result

  • Sizes are transfer sizes, the compressed bytes sent over the network, rounded to whole KB per file.
  • The grade is A under 200 KB, B under 400 KB, C under 700 KB, D under 1200 KB and F at 1200 KB or more. The total turns amber from 400 KB.
  • The parse and execute estimate is a rough rule of 1 ms per KB on a mid-tier phone, so a page with 520 KB of JavaScript gets a C and an estimate of 520ms.
  • The third-party box turns amber when other domains supply more than half of the JavaScript.

Tips and common mistakes

  • First-party means the file address starts with exactly the origin you typed. Scripts on your own subdomains or CDN, such as cdn.example.com, are counted as third-party, so check those rows before blaming a vendor.
  • Enter the address the page finally lands on. If https://example.com redirects to https://www.example.com, the split compares files against the address you typed and can mark all of your own files as third-party.
  • Results change from run to run with ads, A/B tests and cookie banners. Run the check two or three times before comparing a change.
  • If you see an error such as PSI HTTP 429, Google's free quota is busy. Wait a minute and try again, or use pagespeed.web.dev directly.

Privacy and limits

The URL you enter, with your Mobile or Desktop choice, is sent from your browser to Google's PageSpeed Insights API at googleapis.com, which loads that page from Google's servers and returns the Lighthouse report. Nothing else is sent, and the result is not saved, so it is gone when you leave the page. The API is used without a key, so busy periods can return a rate limit error.

Back to the tool

§ 02 · JavaScript is the expensive byte

JS costs more than its weight.

JavaScript blocks the main thread during parse + execute, not just transfer. 350KB of JS takes 1.5-3 seconds to parse + execute on a mid-tier mobile per web.dev's Cost of JavaScript research. That parse-execute time hits TBT and INP directly. Cutting JS by 30% typically lifts Lighthouse Performance 8-15 points and INP by 50-100ms. The checker above splits first-party vs third-party so you know where the cleanup is yours to do vs which third-party tags need vendor conversations.

Five JS reduction patterns ranked by impact. Code-split routes via dynamic import (only ship JS for current view). Tree-shake unused exports (automatic with ES modules + modern bundlers). Replace heavy libraries (moment.js → date-fns saves ~70KB, lodash → individual lodash-es imports saves ~50KB). Lazy-load on interaction (chat widgets, video players). Audit + remove dormant analytics + tag-manager fragments quarterly. Most production SPAs see 30-50% JS reduction in a focused 2-week sprint.

Tools in the same cluster: Page Weight Analyzer for the full byte breakdown. Render Blocking Checker for the critical-path JS view. Core Web Vitals Checker for the INP impact view.

§ 03 · questions

Five answers.

Why is JavaScript size so important?

JavaScript blocks the main thread during parse + execute, not just transfer. 350KB of JS takes 1.5-3 seconds to parse + execute on a mid-tier mobile (the device profile PSI throttles to). That parse-execute time directly hits TBT (Total Blocking Time, the lab proxy for INP) and degrades INP (one of three Core Web Vitals). Cutting JS by 30% typically lifts Lighthouse Performance score by 8-15 points and INP by 50-100ms.

First-party vs third-party JS, how to split?

First-party JS (your own bundles, your CDN) is yours to optimize. Third-party JS (analytics, ads, chat widgets, A/B testing, tag managers, CRM pixels) typically adds 200KB-1MB of un-budgeted weight that's harder to control. The checker above splits and shows per-file size for both. Third-party scripts commonly account for 40-60% of total JS weight on production sites, auditing them quarterly is high-impact cleanup work.

What's a healthy JS budget?

Total JS under 350KB compressed is the practical mobile budget for fast-feeling sites. Above 500KB, INP starts failing on mid-tier mobiles. Above 1MB, Lighthouse Performance drops below 70 even with everything else optimized. The web.dev Cost-of-JS budget is roughly 170KB compressed for INP-friendly experience. Single-page apps (Next.js, Nuxt, Remix) commonly ship 400-700KB on first load, code-splitting + dynamic imports are the standard fix.

How do I shrink JS without losing features?

Five reduction patterns. One, code-split routes via dynamic import, only ship JS for the current view. Two, tree-shake, remove unused exports (modern bundlers do this automatically with ES modules). Three, replace heavyweight libraries (moment.js → date-fns, lodash → individual lodash-es imports, jQuery → vanilla DOM). Four, lazy-load on interaction, chat widgets, video players, heavy components only when triggered. Five, audit + remove dormant analytics + tag-manager fragments quarterly.

Does this tool save my data?

The URL is sent only to Google's public PageSpeed Insights API. Nothing is logged on Digital Heroes servers.

§ 04 · cut the JS

JS over 500KB?

Our web development engagements ship code-split routes, tree-shaking audit, library replacements, and third-party tag cleanup, typically 30-50% JS reduction in a focused 2-week sprint.

Published · Last updated .

Priya sent you a message Online now

Talk to a Developer Now

Share your name and email to reply.

Reply