javascript-minification
यह क्या करती है
यह स्किल जाँचती है कि विज़िटर तक भेजी गई JavaScript छोटी (minified) है और उसमें बेकार कोड हटाया गया है। यह उन डेवलपर्स के लिए है जो तेज़ और हल्की प्रोडक्शन साइट चाहते हैं।
कब इस्तेमाल करें
- ✓जब प्रोडक्शन की JavaScript फ़ाइलें ज़रूरत से कहीं बड़ी हों।
- ✓जब आपका बिल्ड टूल प्रोडक्शन के लिए कोड छोटा करने पर सेट न हो।
- ✓जब आप अपने बंडल से इस्तेमाल न होने वाला कोड हटाना चाहें।
Skill का लिंक
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/javascript-minification/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप पक्का कर सकते हैं कि मेरी प्रोडक्शन JavaScript छोटी (minified) हो?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट प्रोडक्शन बिल्ड सेटिंग्स जाँचता है और Terser जैसे टूल सुझाता है, साथ में tree-shaking भी, जो इस्तेमाल न होने वाला कोड हटाती है। फिर वह पुष्टि करता है कि आउटपुट सचमुच छोटा हुआ है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Minify all JavaScript files
Unminified JavaScript adds hundreds of KB to page weight, slowing down load times especially on mobile networks where every byte counts.
Quick Reference
- Enable minification in your build tool (Vite, webpack, etc.)
- Use Terser for modern JavaScript minification
- Enable tree-shaking to remove unused code
- Typical reduction: 50-70% file size savings
Check
Verify that all JavaScript files are minified in production to reduce file size, remove comments, and optimize code for faster loading and execution.
Fix
Configure your build system to minify JavaScript files using tools like Terser, UglifyJS, or built-in framework minification for production deployment.
Explain
Explain how JavaScript minification improves website performance by reducing bundle sizes, eliminating dead code, and optimizing parsing speed.
Code Review
Review scripts, client components, and browser execution paths related to Minify all JavaScript files. Flag exact imports, event handlers, runtime side effects, or blocking operations that violate the rule, and state how the change should be verified in the browser.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/javascript/javascript-minification
अक्सर पूछे जाने वाले सवाल
फ़ाइलें कितनी छोटी हो सकती हैं?
स्किल के अनुसार minification से फ़ाइल का आकार अक्सर 50 से 70 प्रतिशत तक घट जाता है।
tree-shaking क्या है?
यह अंतिम बंडल से इस्तेमाल न होने वाला कोड हटा देती है, ताकि विज़िटर को कम डाउनलोड करना पड़े।
कौन-से टूल बताए गए हैं?
स्किल में Terser, UglifyJS और फ़्रेमवर्क में बने minification का ज़िक्र है।
जानकारी
लेखक का मूल विवरण
Use when reviewing scripts, client components, bundles, or runtime behavior related to Minify all JavaScript files. Inspect both source code and the browser execution path so fixes target the real bottleneck or bug.
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #2902
- लाइसेंस
- MIT
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
frontendchecklist
75kकमांड-लाइन टूल से फ़्रंटएंड कोड और लाइव पेजों को एक्सेसिबिलिटी, स्पीड, SEO और सिक्योरिटी के 380 से ज़्यादा नियमों से जाँचती है।
frontend-checklist-global
75kफ़्रंटएंड प्रोजेक्ट को Front-End Checklist के सभी 386 नियमों से ऑडिट करती है, और हर मिली समस्या का ठोस समाधान देती है।
404-page
75kजाँचती है कि आपका गुम पेज उपयोगी लिंक देता है और सही 404 स्टेटस लौटाता है, ताकि भटके हुए विज़िटर रास्ता ढूँढ सकें।
about-page
75kजाँचती है कि आपकी साइट पर एक साफ़ About पेज है जो बताता है कि उसे कौन चलाता है, ताकि विज़िटर और सर्च इंजन का भरोसा बढ़े।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।