--- name: third-party-bloat description: > Inventory third-party scripts on a page — analytics, tag managers, chat widgets, ads, A/B tools — and rank them by transfer size and main-thread cost. Flags the heaviest offenders. Playwright MCP only, no signup. --- # Third-Party Bloat Find out which third-party scripts are weighing your page down. No signup required. ## Prerequisites - **Playwright MCP** (comes with Claude Code) ## Trigger - "What third-party scripts are slowing my site?" - "Third-party bloat audit https://..." - "Which trackers are on my page?" ## Workflow 1. Navigate to the URL using `mcp__playwright__browser_navigate` 2. Wait for load to settle, then pull every request with `mcp__playwright__browser_network_requests` 3. Classify each request as first-party (same registrable domain as the page) or third-party. Group third-party requests by their domain and sum transfer size + request count per domain. 4. Label well-known vendors by domain so the report is readable, e.g.: - `google-analytics.com`, `googletagmanager.com` → Analytics / Tag Manager - `doubleclick.net`, `googlesyndication.com` → Ads - `connect.facebook.net` → Meta Pixel - `intercom`, `crisp.chat`, `hotjar`, `fullstory` → Chat / Session replay - `optimizely`, `launchdarkly` → A/B / Flags 5. Estimate main-thread cost: count third-party `