Skip to content
Back to skills

Web Performance Js Bundle Diet

ASecurity

Analyze, split, and replace dependencies so routes ship only the code they execute.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 29, 2026
ai-agentsjavascriptjavabashgitapifrontendperformance

Works with

  • cli
  • api

Security analysis

A100/100

Scanned September 29, 2026

npx -y skills add aniruddhaadak80/skills --skill web-performance-js-bundle-diet --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Web Performance Js Bundle Diet?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Web Performance Js Bundle Diet
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aniruddhaadak80-web-performance-js-bundle-diet/badge)](https://www.skillsdirectory.com/skills/aniruddhaadak80-web-performance-js-bundle-diet)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: web-performance-js-bundle-diet
description: "Analyze, split, and replace dependencies so routes ship only the code they execute."
---
# Put JavaScript bundles on a diet

> Analyze, split, and replace dependencies so routes ship only the code they execute.

**Track:** 🎨 Frontend Engineering · **Domain:** Web Performance · **Level:** intermediate · **~35 min**

**Who this is for:** Frontend Engineers, Full-Stack Developers, Design Engineers, UI Developers

## When to Use This Skill

Analyze, split, and replace dependencies so routes ship only the code they execute.
Use it whenever a matching task appears in conversation — the agent loads these instructions on demand.

## Steps

1. Generate a bundle report; list the ten largest modules per route
2. Replace moment/lodash-class imports with native APIs or per-function imports
3. Dynamic-import heavy widgets (editors, charts) behind interaction
4. Move date/number formatting and markdown parsing server-side where possible
5. Set an import lint rule banning known-bloated packages
6. Track route-level JS budget over time; investigate any growth spike same week

## Common Pitfalls

- Tree-shaking defeated by side-effectful barrel files
- Polyfills duplicated by transpilation misconfig

## Commands

**Install with skills CLI**
```bash
npx skills add aniruddhaadak80/skills --skill web-performance-js-bundle-diet
```

**Install globally**
```bash
npx skills add aniruddhaadak80/skills --skill web-performance-js-bundle-diet -g
```

---

Part of [aniruddhaadak80/skills](https://github.com/aniruddhaadak80/skills) · Browse all at https://skills.sh/aniruddhaadak80/skills

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…