compression
Installation
SKILL.md
Enable text-based compression
Compressed assets download faster, reducing the time to first paint and improving the overall perceived performance, especially on slower mobile networks.
Quick Reference
- Use Gzip or Brotli to compress text resources (HTML, JS, CSS)
- Brotli provides superior compression for modern browsers
- Significantly reduces data transfer size and load times
- Compression helps network cost, but it does not remove parse and execution cost from oversized bundles
Check
Verify that text-based resources are served with Content-Encoding: gzip or br headers.
Fix
Enable Gzip or Brotli compression in your web server (Nginx, Apache) or CDN settings.