fetchpriority-attribute
यह क्या करती है
यह स्किल जाँचती है कि पेज अपनी मुख्य तस्वीरों और संसाधनों की लोडिंग प्राथमिकता कैसे संकेत देता है। यह उन डेवलपर्स के लिए है जो चाहते हैं कि पेज की मुख्य सामग्री तेज़ी से दिखे।
कब इस्तेमाल करें
- ✓जब आपके पेज की मुख्य hero तस्वीर धीरे लोड होती है।
- ✓जब आपका पेज Largest Contentful Paint पर कमज़ोर स्कोर लाता है।
- ✓जब पेज के ऊपरी हिस्से में कई तस्वीरें लोड होने के लिए एक-दूसरे से होड़ करती हैं।
Skill का लिंक
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/fetchpriority-attribute/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप ब्राउज़र को बता सकते हैं कि मेरी hero तस्वीर पहले लोड करे?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट fold के ऊपर की सबसे बड़ी तस्वीर खोजता है और उसके लिए उच्च प्राथमिकता का संकेत सुझाता है। नीचे की तस्वीरों के लिए वह कम प्राथमिकता सुझा सकता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Use fetchpriority to hint resource loading priority
Browsers use internal heuristics to guess resource priority, but they cannot know which image is your LCP candidate. Adding fetchpriority="high" to the LCP image has been shown to reduce LCP by 5–30 % in real-world tests, directly improving Core Web Vitals scores and user-perceived load speed. The attribute costs nothing to add and is the lowest-effort high-impact performance optimisation available today.
Quick Reference
- Add fetchpriority="high" to the LCP image to accelerate Largest Contentful Paint
- Add fetchpriority="low" to below-the-fold images that would otherwise compete with critical resources
- Use fetchpriority="high" on <link rel="preload"> for critical fonts and CSS
- Avoid marking more than one or two resources as high priority — it defeats the purpose
Check
Check whether the LCP image or hero element has fetchpriority="high" and whether any high-priority preload links are missing the attribute.
Fix
Add fetchpriority="high" to the LCP image element and any preloaded critical resources, and fetchpriority="low" to non-critical below-the-fold images.
Explain
Explain how the browser's resource priority queue works and how fetchpriority hints change loading order to improve LCP.
Code Review
Review the HTML for images above the fold. Flag the LCP candidate if it lacks fetchpriority="high", and flag any carousel or below-fold images that lack fetchpriority="low" (they compete with critical resources).
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/performance/fetchpriority-attribute
अक्सर पूछे जाने वाले सवाल
fetchpriority क्या करता है?
यह एक HTML attribute है जो संकेत देता है कि कोई संसाधन कितना ज़रूरी है, ताकि ब्राउज़र उसे बेहतर क्रम में लोड कर सके।
यह कितना मदद कर सकता है?
स्किल असली दुनिया के परीक्षणों का ज़िक्र करती है, जिनमें Largest Contentful Paint पर लगभग 5 से 30 प्रतिशत तक सुधार मिला।
क्या हर तस्वीर उच्च प्राथमिकता वाली होनी चाहिए?
नहीं। स्किल चेतावनी देती है कि एक या दो से ज़्यादा संसाधनों को उच्च प्राथमिकता देने से इसका मकसद ही खत्म हो जाता है।
जानकारी
लेखक का मूल विवरण
Use when optimising Largest Contentful Paint (LCP), reducing render-blocking resource contention, or fine-tuning resource loading order in the critical rendering path.
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #2842
- लाइसेंस
- 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 फॉलो करवाता है।