{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-js-file-size-8b47dff5f280","title":"Optimize JavaScript Bundle Size for Performance","summary":"Reduce JavaScript bundle size to improve page load speed, reduce data costs, and enhance user experience on low-end devices. Deliverable includes identifying files exceeding 200KB (Gzip\/Brotli) and recommending fixes such as code-splitting and tree-shaking.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-js-file-size-8b47dff5f280","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-js-file-size-8b47dff5f280","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-js-file-size-8b47dff5f280.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-js-file-size-8b47dff5f280\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes. Ensure code-splitting and tree-shaking are implemented based on audit results.","instructions":"---\nname: js-file-size\ndescription: \"Use when auditing slow page loads, heavy assets, or rendering delays related to Optimize JavaScript bundle size. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.\"\nmetadata:\n  category: performance\n  priority: medium\n  difficulty: intermediate\n  estimatedTime: \"10\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/performance\/js-file-size\n---\n\n# Optimize JavaScript bundle size\n\nExcessive JavaScript increases parse and execution time, especially on low-end devices, leading to sluggish user experiences and high data costs.\n\n## Quick Reference\n\n- Keep individual JS bundles under 200KB (compressed)\n- Large bundles delay Time to Interactive (TTI) and First Input Delay (FID)\n- Use code-splitting and tree-shaking to reduce unused code\n\n## Check\n\nReview the JavaScript bundle sizes and identify any files exceeding 200KB (Gzip\/Brotli).\n\n## Fix\n\nImplement code-splitting, tree-shaking, and dependency audits to reduce the size of the JavaScript bundles.\n\n## Explain\n\nExplain how large JavaScript files impact the main thread and delay user interactivity (FID\/TTI).\n\n## Code Review\n\nReview the routes, assets, and loading behavior that affect Optimize JavaScript bundle size. 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\/js-file-size\n","use_cases":["Auditing slow page loads caused by large JavaScript bundles","Improving Time to Interactive (TTI) and First Input Delay (FID) metrics","Reducing data costs for users on low-bandwidth connections"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/js-file-size\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T16:44:36.000000Z","updated_at":"2026-11-23T04:55:22.000000Z","seo_title":"Optimize JavaScript Bundle Size for Performance","seo_description":"Reduce JavaScript bundle size to improve page load speed, reduce data costs, and enhance user experience on low-end devices.","seo_keywords":["optimize javascript bundle size","reduce javascript file size","improve page load speed","optimize performance","reduce data costs"]}}