
Compression
This one teaches Claude about JavaScript compression with Gzip and Brotli, including the trade-offs between compression ratios, bundle sizes, and caching. It covers both static and dynamic compression strategies, when to use each, and the actual performance gains companies like Oyo and Wix saw switching from Gzip to Brotli (15-25% file size reduction). The skill emphasizes the granularity problem where larger bundles compress better but smaller chunks cache better, which is the kind of nuance that matters when you're actually configuring a production build. It's scoped to read JavaScript and TypeScript files, so it can analyze your code while explaining compression concepts. Useful if you're optimizing network transfer times or setting up server-side compression and want Claude to understand the full context.
- skills.sh installs
- 1.7K
- GitHub stars
- 258
- last updated
- Aug 21, 2026
Install
$ npx -y skills add patternsdev/skills --skill compression --agent claude-codeInstalls into .claude/skills of the current project.
Files
Compressing JavaScript
Table of Contents
JavaScript is the second biggest contributor to page size and the second most requested web resource on the internet after images. We use patterns that reduce the transfer, load, and execution time for JavaScript to improve website performance. Compression can help reduce the time needed to transfer scripts over the network.
When to Use
- Use this when you need to reduce JavaScript payload sizes for faster page loads
- This is helpful when optimizing network transfer times, especially for users on slower connections
- Use this alongside minification, code-splitting, and caching strategies
Instructions
Sponsors
Details
- Repository
- github.com/patternsdev/skills
- Category
- Backend & APIs
- First seen
- Jun 3, 2026
More from patternsdev/skills
All 47- Loading Sequence1.7K
- Preload1.7K
- Import On Interaction1.6K
- Prefetch1.6K
- Import On Visibility1.6K
- Third Party1.6K
- Virtual Lists1.6K
- Route Based1.6K
- Tree Shaking1.6K
- Prpl1.6K
- Static Import1.6K
- Hooks Pattern1.2K
- React Composition 20261.2K
- Presentational Container Pattern1.2K
- React Render Optimization1.1K
- React Data Fetching1.1K
- Compound Pattern1.1K
- Hoc Pattern1.1K
- Client Side Rendering1.1K
- Render Props Pattern1.1K
- React Server Components1K
- Progressive Hydration1K
- React Selective Hydration1K
- Server Side Rendering997