compression
What it does
This skill checks whether HTML, CSS and JavaScript are compressed when sent to browsers. It is for site owners and developers who want faster page delivery.
When to use it
- ✓When your server sends text files without compression.
- ✓When visitors on slow mobile networks wait a long time for pages.
- ✓When you set up a new web server or CDN.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/compression/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Check whether my site compresses HTML, CSS and JavaScript, and turn on Brotli or Gzip if it does not.”
5 new skills a week. 1 minute to read.
How it works
The agent checks response headers for gzip or br encoding and enables compression in the web server or CDN settings if it is missing.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
Explain
Explain how text-based compression works and its impact on asset delivery speed.
Code Review
Review the routes, assets, and loading behavior that affect Enable text-based compression. Flag exact files, requests, or rendering steps that add unnecessary network, CPU, or layout cost, and describe the measurement method used to confirm the issue.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/performance/compression
FAQ
Which compression methods does the skill mention?
Gzip and Brotli, with Brotli described as better for modern browsers.
Does compression fix a heavy JavaScript bundle?
No. The skill says compression reduces transfer size but does not remove the cost of parsing large bundles.
Where is compression turned on?
The skill mentions Nginx, Apache or CDN settings.
Details
Original description by the author
Use when auditing slow page loads, heavy assets, or rendering delays related to Enable text-based compression. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2777
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.