Skillpedia
المواقع والواجهات (frontend)75k · #2916

lazy-loading

ما الذي تفعله

تتحقق هذه المهارة من أن المحتوى البعيد في أسفل الصفحة لا يُحمَّل إلا عند الحاجة إليه. وهي موجهة للمطورين والمصممين الذين يريدون تحميلًا أوليًا أخف.

متى تستخدمها

  • ✓عندما تُحمَّل صفحة طويلة كل صورها قبل أن يمرّر الزائر.
  • ✓عندما تُحمَّل فيديوهات مضمّنة أو خرائط في بداية الصفحة.
  • ✓عندما يُنزّل التحميل الأول للصفحة بيانات أكثر بكثير مما يراه الزائر.

رابط المهارة

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/lazy-loading/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/lazy-loading/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل يمكنك إعداد التحميل الكسول للصور الأبعد في أسفل صفحتي؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يحدد الوكيل المحتوى الذي يظهر أسفل الشاشة الأولى، ويقترح التحميل الكسول الأصلي للمتصفح أو Intersection Observer. ويتجنب التحميل الكسول لأهم الصور في الأعلى.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Implement lazy loading for offscreen content

Lazy loading defers non-critical resources until needed—this reduces initial page weight, speeds up first paint, and saves bandwidth for content users may never scroll to.

Quick Reference

  • Use loading='lazy' for images below the fold
  • Never lazy load LCP/above-fold images—they need priority
  • Lazy load iframes, videos, and heavy components
  • Use Intersection Observer for custom lazy loading
  • If fold position is unclear from the snippet, do not invent a lazy-loading defect

Check

Verify that images and other heavy resources below the fold are lazy loaded. Only report this when the code or route context makes offscreen placement clear.

Fix

Implement lazy loading for images, videos, and iframes using native loading='lazy' or JavaScript solutions.

Explain

Explain how lazy loading defers resource loading until needed, improving initial page load performance.

Code Review

Review the routes, assets, and loading behavior that affect Implement lazy loading for offscreen content. 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.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/performance/lazy-loading

الأسئلة الشائعة

ما التحميل الكسول الأصلي؟

هو إعداد مدمج في المتصفح يؤجل تحميل صورة أو إطار حتى يقترب من الشاشة.

ما الذي لا يجب تحميله بشكل كسول أبدًا؟

تقول المهارة إنه لا يجوز التحميل الكسول لأكبر صورة محتوى في أعلى الصفحة.

ماذا لو كان موضع المحتوى غير واضح؟

تقول المهارة إنه لا يُبلغ عن مشكلة إلا إذا كانت الشيفرة توضح موضع المحتوى.

التفاصيل

الوصف الأصلي من المؤلف

Use when auditing slow page loads, heavy assets, or rendering delays related to Implement lazy loading for offscreen content. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes. Absence of `loading='lazy'` is not enough by itself when fold position is unknown.

repo: thedaviddias/Front-End-Checklist

الشعبية

نجوم GitHub
75k
الترتيب
#2916
الترخيص
MIT
آخر تحديث
31‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة