๐ŸŽฏ

compression

๐ŸŽฏSkill

from patternsdev/skills

Installation

Vibe Index InstallInstalls to .claude/skills/
$npx vibeindex add patternsdev/skills --skill compression
skills.sh Installโš  Installs to .agents/skills/
$npx skills add patternsdev/skills --skill compression
Manual InstallCopy SKILL.md content and save to the path below
path
~/.claude/skills/compression/SKILL.md
VibeIndex|
What it does
|

patterns.dev skill teaching **JavaScript compression** โ€” prefer Brotli over Gzip at the server/CDN or via Webpack `CompressionPlugin`/`BrotliWebpackPlugin`, always minify first, and respect the granularity trade-off that a single large bundle compresses better (`compress(a+b) <= compress(a)+compress(b)`) while smaller chunks cache better.

๐Ÿ“ฆ

Same repository

patternsdev/skills(58 items)

compression

SKILL.md

724Installs
-
AddedApr 7, 2026

More from this repository10

๐ŸŽฏ
react-2026๐ŸŽฏSkill

Agent skill from patterns.dev providing a comprehensive guide to building React apps with a modern 2026 stack โ€” part of the React design pattern set in an agent-optimized prose+code format.

๐ŸŽฏ
ai-ui-patterns๐ŸŽฏSkill

Agent skill from patterns.dev covering design patterns for building AI-powered interfaces like chatbots and assistants โ€” an agent-optimized, prose+code-only version of the patterns.dev React design pattern content (no iframes or videos).

๐ŸŽฏ
dynamic-import๐ŸŽฏSkill

patterns.dev skill teaching **`import()` dynamic imports** for on-demand code loading โ€” use `React.lazy` + `Suspense` (or `loadable-components` for SSR) to keep modals, emoji pickers, and other non-critical modules out of the initial bundle, with an example reducing the main bundle from 1.5 MiB to 1.33 MiB.

๐ŸŽฏ
bundle-splitting๐ŸŽฏSkill

patterns.dev skill teaching **bundle splitting** with Webpack or Rollup โ€” separate non-critical code (rarely-used features, interaction-triggered modules) out of the initial bundle to improve FCP, LCP, and TTI without changing user-visible behavior.

๐ŸŽฏ
preload๐ŸŽฏSkill

patterns.dev skill teaching `<link rel="preload">` and `/* webpackPreload: true */` to prioritize **late-discovered critical resources** (fonts, hero scripts, key JS) for TTI/LCP wins โ€” with the `async`-hack variant, the `as=`/`crossorigin` rules, and a warning not to preload anything that isn't needed within ~1 second of first render.

๐ŸŽฏ
loading-sequence๐ŸŽฏSkill

Teaches how to order resource loading โ€” critical HTML, CSS, JS, fonts, images โ€” so your app becomes usable as quickly as possible. Part of the patterns.dev performance pattern library.

๐ŸŽฏ
prefetch๐ŸŽฏSkill

patterns.dev skill teaching **resource prefetching** with `<link rel="prefetch">` and Webpack's `/* webpackPrefetch: true */` magic comment โ€” load likely-soon resources at low priority during idle time to make subsequent navigations instant, with warnings about wasting data on metered/low-bandwidth connections.

๐ŸŽฏ
import-on-interaction๐ŸŽฏSkill

patterns.dev skill teaching **interaction-based lazy loading** โ€” defer heavy modules (video players, chat widgets, auth SDKs, share features) with dynamic `import()` and lightweight facades (e.g. YouTube Lite Embed) so they only load on click/hover, improving FID/INP and TTI.

๐ŸŽฏ
route-based๐ŸŽฏSkill

patterns.dev skill teaching **route-based code splitting** โ€” combine React Suspense / `loadable-components` with `react-router` (or use built-in support in Next.js / Remix / React Router) to lazily load only the components needed for the current route, piggybacking on the loading tolerance users already expect during navigation.

๐ŸŽฏ
third-party๐ŸŽฏSkill

patterns.dev skill teaching **third-party script optimization** โ€” analytics, ads, embeds, and chat widgets that drag down Core Web Vitals โ€” via `async`/`defer`, `preconnect`/`dns-prefetch`, facades for YouTube/social embeds, self-hosting critical scripts, and the Next.js `Script` component's `strategy` values.