sprite-generation
यह क्या करती है
यह स्किल साइट की छोटी इमेज और आइकन की समीक्षा करती है और उन्हें sprite में जोड़ने या SVG आइकन पर जाने का सुझाव देती है। यह उन वेब बिल्डरों के लिए है जो छोटे ग्राफ़िक्स के लिए कम अनुरोध चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप एजेंट से पेज पर छोटी इमेज के अनुरोध कम करवाएँ।
- ✓जब पेज एक-एक करके दर्जनों छोटी आइकन फ़ाइलें लोड करे।
- ✓जब आप किसी साइट के लिए sprites, SVG आइकन और icon fonts के बीच चुनाव कर रहे हों।
Skill का लिंक
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/sprite-generation/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा पेज दर्जनों छोटी आइकन फ़ाइलें लोड करता है। क्या आप उन्हें जोड़ सकते हैं या SVG पर बदल सकते हैं ताकि पेज कम अनुरोध करे?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट पूरी साइट पर इस्तेमाल होने वाली छोटी इमेज और आइकन खोजता है। वह या तो एक CSS sprite बनाने का सुझाव देता है जो उन्हें जोड़े, या inline SVG या SVG आइकन सिस्टम पर जाने का, जिसे स्किल अक्सर अधिक लचीला बताती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Use image sprites where appropriate
Each image is an HTTP request—combining many small images into one sprite reduces requests, though modern HTTP/2 and SVG icons have reduced this need.
Quick Reference
- Sprites combine multiple images into one to reduce HTTP requests
- Modern alternative: SVG icon systems (more flexible)
- HTTP/2 makes sprites less critical but still useful for small icons
- Consider inline SVG or icon fonts for most icon use cases
Check
Check if small images and icons are combined into sprites to reduce HTTP requests.
Fix
Create CSS sprites for icons and small images, or migrate to SVG icons.
Explain
Explain how sprites reduce HTTP requests but consider modern alternatives like SVG icons.
Code Review
Review image assets, markup, and delivery configuration related to Use image sprites where appropriate. Flag exact files or components where format choice, sizing, or loading behavior violates the rule, and describe how to confirm the fix in DevTools.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/images/sprite-generation
अक्सर पूछे जाने वाले सवाल
नए वेब प्रोटोकॉल के साथ sprites अब भी मायने रखते हैं?
स्किल कहती है कि HTTP/2 से sprites कम ज़रूरी हो गए हैं, पर छोटे आइकन के लिए अब भी उपयोगी हैं।
क्या SVG बेहतर विकल्प है?
स्किल SVG आइकन सिस्टम को अधिक लचीला और sprites का आधुनिक विकल्प बताती है।
icon fonts के बारे में क्या?
स्किल अधिकांश आइकन उपयोगों के लिए inline SVG या icon fonts को विकल्प बताती है।
जानकारी
लेखक का मूल विवरण
Use when reviewing image assets, markup, and CDN or build transforms related to Use image sprites where appropriate. Check encoded size, rendered size, loading strategy, and above-the-fold impact together.
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #3033
- लाइसेंस
- 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
gifgrep
394kयह आपके एजेंट को GIF लाइब्रेरी में खोजने, नतीजों का पूर्वावलोकन करने, GIF डाउनलोड करने, और उससे एक फ़्रेम या फ़्रेम्स की शीट निकालने देती है।
meme-maker
394kयह आपके एजेंट को मीम टेम्पलेट चुनने, अपने कैप्शन जोड़ने और मीम को SVG या PNG इमेज के रूप में बनाने देती है।
ios-icon-gen
280kआपके एजेंट को iOS ऐप्स के लिए icons बनाने देता है। यह Apple symbols या दूसरे स्रोतों के आइकन इस्तेमाल करके सही files बनाता है।