unused_code
Analyzes a web page to identify unused JavaScript and CSS, showing total bytes, unused bytes, and potential savings to reduce bundle size.
Instructions
Find unused JavaScript and CSS on a page. Runs Lighthouse and extracts the unused-javascript and unused-css-rules audits, showing each resource with total bytes, unused bytes, and potential savings. Great for reducing bundle size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the page to analyze for unused code (e.g., http://localhost:3000) |