
Description
Bundle Splitting is an agent skill that teaches how to split a web app's JavaScript into smaller bundles for better performance. It explains the problem: bundlers such as Webpack or Rollup combine source code into one or more bundles, and the browser must load, parse and execute them before the page is usable. The aim is to keep execution time short so the main thread is not blocked. Use it when your application has a large JavaScript bundle that slows loading, when you want to reduce First Contentful Paint and Largest Contentful Paint, or when parts of the code are only needed for certain user interactions or routes. The instructions tell the agent to use a bundler like Webpack or Rollup to split code into smaller bundles, to move code that is not needed for the first render into its own bundle, and to consider the effect on Time to Interactive, giving priority to critical rendering code. The skill is part of the patternsdev skills collection on GitHub.…
Highlights
- Splits large JavaScript bundles with Webpack or Rollup
- Separates code not needed for the first render
- Targets First Contentful Paint and Largest Contentful Paint
- Weighs the effect on Time to Interactive
Ratings & Reviews
No ratings yet
Be the first to rate bundle-splitting.
People also visit
bundle-splitting FAQ
What does this skill make the agent do?
It guides the agent to split a large JavaScript bundle into smaller pieces, so code loads when it is needed.
When should I use it?
When a large bundle slows page load, when you want to improve FCP or LCP, or when some code is only needed for specific routes or interactions.
Which tools does it mention?
Bundlers such as Webpack and Rollup.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
How do I install it?
Run npx skills add https://github.com/patternsdev/skills --skill bundle-splitting.
What are the best bundle-splitting alternatives?
Popular alternatives to bundle-splitting include route-based, web-performance-optimization and react-performance-optimization. See all bundle-splitting alternatives












