# Shrink the JavaScript you send

> The site downloads megabytes of code before anything is usable.

Web page: https://buildladder.com/resources/prompts/bundle-size

What you get: What’s in the bundle, the few packages responsible, and lighter ways to do the same job.

Paste it into: Your AI tool, in your project

## Prompt to copy

```text
My site ships too much JavaScript. Find out what's in it.

Build for production and analyze the bundle. Show me the largest pieces per page and which packages they come from. Look for: a big library used for one small function, the same library included twice in different versions, code for admin or rarely used screens loaded on the home page, and components that run in the browser when they could render on the server.

For the worst offenders, propose the lightest fix: a built-in browser feature, a smaller import, loading on demand, or removing the dependency. Apply them one at a time and show the size per page before and after.
```
