Third-Party Script Risk and Budget Analyzer
Find every outside script, stylesheet, iframe and pixel on a page, group them by vendor, see which block rendering and what data they collect, and track them against a size budget.
Berjalan dalam pelayar anda. Fail anda tidak pernah meninggalkan peranti. Lihat cara menyemaknya
…
Cara melakukannya
- 1Add the page
Paste the HTML source, or open a HAR file recorded with the cache disabled.
- 2Set your URL
Enter the page URL so your own domain is treated as first party.
- 3Review vendors
Expand each site to see its requests, then fix names and categories.
- 4Set budgets
Choose a per-vendor and a total budget in KB, and override vendors you accept as larger.
- 5Read fixes
Work through blocking scripts, eager embeds and high-risk tags in the Fixes tab.
- 6Export
Download the vendor CSV for your privacy register or performance report.
Tentang alat ini
Most slow pages are slow because of code the site owner did not write. Tag managers, analytics, chat widgets, consent banners, A/B testing tools, ad pixels and video embeds each add requests, main-thread work and often a privacy obligation. This analyzer builds an inventory from what you give it. Paste the page source and it reads script, link, iframe, img and noscript tags, plus URLs inside inline loader snippets, and notes whether each script is async, defer, a module or render blocking in the head. Open a HAR file recorded in the browser Network panel and it adds the real transfer size, timing and Chrome's own render-blocking flag for every request, including tags a tag manager loaded later. Requests are grouped by registrable domain and the first-party site is left out. Each vendor gets a guessed name and category from a short rule list, a data-risk level with a plain reason, and a size against your budget. You can rename vendors and change categories when the guess is wrong.
Categories and risk
Session recording tools are high risk because they capture clicks, scrolls and typed text. Advertising and social pixels are high because they share visits with networks that profile people across sites. Analytics, chat, testing, payment, video and CAPTCHA services are medium. Fonts, maps, consent managers and public CDNs are low, though fonts still send the visitor IP to the host. Unknown domains are medium until you identify them, which is the most useful moment to ask who added a tag and why.
Budgets
Set a default budget per vendor and a total third-party budget in KB, then override the limit for any vendor. Bars turn red when a vendor goes over. Without a HAR the page cannot know sizes, so every vendor shows 0 KB and the tool says so.
Fixes
The fixes tab lists render-blocking vendor requests with the change to make, eager video iframes that should become click-to-load facades, public CDN files that should have SRI hashes or be self-hosted, session recording that should mask inputs and wait for consent, and scripts injected by inline snippets so you can check they run after consent.
Limits
Vendor names come from a small rule list and the registrable domain is found with a simple rule, so rename anything that looks wrong. The HTML view does not run scripts and cannot see tags added later; the HAR view sees only what loaded during your recording. This is a technical inventory, not legal advice about consent or data protection law.
Contoh berselesaian
An online shop pastes its home page. The analyzer finds 8 third-party sites: cookielaw.org (consent script in the head with no async, flagged as blocking), googleapis.com (font stylesheet, blocking), googletagmanager.com (async), jquery.com (blocking script from a public CDN), hotjar.com (injected by an inline snippet, high risk), youtube.com (eager iframe), intercom.io (async chat) and facebook.com (a 1x1 pixel, high risk). Opening a HAR from the same page adds sizes: the tag manager weighs 102 KB against a 60 KB vendor budget, and the total of 310 KB breaks the 250 KB third-party budget, so the report suggests a facade for the video and loading the chat widget on interaction.
Ringkasnya
- Kategori: Pembangun & data
- Berjalan dalam pelayar, tanpa pendaftaran, tanpa muat naik.
- Maklumat yang anda masukkan kekal pada peranti anda.
- Tersedia dalam bahasa Inggeris.
- Kandungan disemak kali terakhir:
- Sumber rasmi: web.dev: efficiently load third-party JavaScript, and the HAR 1.2 format
Soalan lazim
What is a third party here?
Any request whose registrable domain differs from your page URL, such as googletagmanager.com on shop.example.com. Subdomains of your own site, like cdn.example.com, count as first party.
Why do I need a HAR file?
Page HTML does not contain file sizes, and tags loaded by a tag manager are not in it. A HAR records every request with its transfer size, so sizes and budgets need one.
How do I record a HAR?
Open DevTools, go to the Network panel, tick Disable cache, reload the page, wait for it to settle, then use Export HAR or Save all as HAR. Remove cookies before sharing it.
What makes a script render blocking?
A classic script in the head without async, defer or type=module stops HTML parsing until it downloads and runs. Stylesheets block rendering unless their media does not match.
Can I correct a wrong vendor guess?
Yes. Type a vendor name and pick a category per site; the risk level and the exported CSV follow your choice, and undo works on every change.
Does my HAR leave the browser?
No. The file is read in this tab only. A HAR can contain cookies and tokens, so the page never stores it in local storage either.
