Start a project

Tool 96 of 194 · Performance

Third-party Script Cost Calculator

See what your analytics, chat, video and ad tags really cost in bytes and main-thread time, before you add one more.

Third-party Script Cost Calculator

Tags on your site

Cost per tag

TagCategoryRequestsTransferUncompressedMain threadNotes

    Main-thread time

    Export

    Selected tags as CSV

    Each tag's official snippet was loaded on a blank page in Chromium with an empty cache and placeholder account IDs, counting every request it made until the network settled. Main-thread times are third-party-web's HTTP Archive averages for the company that serves the tag.

    01

    What it does

    Totals the bytes, requests, origins and main-thread time of the third-party tags you pick, from a catalogue measured in Chromium and HTTP Archive data.

    • 44 common tags: analytics, tag managers, pixels, chat, consent, payments, captchas, video, maps, fonts and widgets
    • Bytes on the wire, uncompressed size and every request, measured in Chromium with an empty cache
    • Main-thread time from HTTP Archive's Lighthouse runs on millions of pages, via third-party-web
    • Company time counted once, so GA4 and Google Tag Manager aren't double-counted

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    Totals, a cost per tag, a chart, notes on facades and duplicates, and CSV, with a Copy and a Download button on every result.

    • Third-party scripts
    • Performance budget
    • Main thread

    Why it matters

    Third-party tags are often the heaviest thing on a page. A video embed, a chat widget and a couple of pixels can add a megabyte and seconds of main-thread work, and none of it is code you control. The cost is easy to miss because each tag looks small in its own snippet.

    This calculator uses a catalogue measured on the date shown: each tag's official snippet was loaded on a blank page in Chromium, counting every request it made. Main-thread time comes from third-party-web, which attributes script execution in HTTP Archive's Lighthouse runs to the company behind each domain. Pick your tags to see the totals against a budget, and which ones to load only when someone clicks.

    How to use it

    1. Tick the tags your site loads.
    2. Set a budget and a connection speed.
    3. Read the totals and the cost per tag.
    4. Replace heavy embeds with facades, and remove tags you no longer use.

    FAQ

    Where do the numbers come from?

    Transfer sizes and requests were measured on the date shown by loading each tag's official snippet in Chromium with an empty cache. Main-thread times are third-party-web's averages from HTTP Archive's Lighthouse mobile runs across millions of sites.

    Why might my site's numbers differ?

    Tags load different code for different accounts, and some only load their loader without a real account ID. Your container or configuration, caching and the visitor's device all change the cost, so use this for comparing and budgeting.

    What is a facade?

    A lightweight placeholder, such as a video thumbnail or a chat button, that loads the real third-party code only when someone interacts with it. It removes the cost for visitors who never click.

    Why is main-thread time per company?

    HTTP Archive attributes script execution to domains, and several tags from one company share domains. Counting each company once avoids double-counting tags like GA4 and Google Tag Manager.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk