{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-compression-6ab0ce5883f5","title":"Enable Text-Based Compression for Faster Asset Delivery","summary":"Compress HTML, CSS, and JavaScript assets using Gzip or Brotli to reduce download size and improve page load speed, especially on mobile networks. Deliverable includes verification that resources are served with `Content-Encoding: gzip` or `br` headers.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-compression-6ab0ce5883f5","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-compression-6ab0ce5883f5","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-compression-6ab0ce5883f5.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-compression-6ab0ce5883f5\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes. Ensure the web server (Nginx, Apache) or CDN settings are configured to enable Gzip or Brotli compression.","instructions":"---\nname: compression\ndescription: \"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.\"\nmetadata:\n  category: performance\n  priority: high\n  difficulty: beginner\n  estimatedTime: \"10\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/performance\/compression\n---\n\n# Enable text-based compression\n\nCompressed assets download faster, reducing the time to first paint and improving the overall perceived performance, especially on slower mobile networks.\n\n## Quick Reference\n\n- Use Gzip or Brotli to compress text resources (HTML, JS, CSS)\n- Brotli provides superior compression for modern browsers\n- Significantly reduces data transfer size and load times\n- Compression helps network cost, but it does not remove parse and execution cost from oversized bundles\n\n## Check\n\nVerify that text-based resources are served with `Content-Encoding: gzip` or `br` headers.\n\n## Fix\n\nEnable Gzip or Brotli compression in your web server (Nginx, Apache) or CDN settings.\n\n## Explain\n\nExplain how text-based compression works and its impact on asset delivery speed.\n\n## Code Review\n\nReview 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.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/performance\/compression\n","use_cases":["Auditing slow page loads due to large text-based assets","Optimizing performance for mobile users with slow connections","Reducing network bandwidth usage for text-based resources"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/compression\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T15:33:47.000000Z","updated_at":"2026-11-23T04:54:56.000000Z","seo_title":"Enable text-based compression for faster asset delivery","seo_description":"Improve page load speed by enabling text-based compression for HTML, CSS, and JavaScript assets. Reduces data transfer size and load times.","seo_keywords":["enable text-based compression","optimize page load speed","reduce asset download size","improve mobile performance"]}}