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

list-virtualization

ما الذي تفعله

تنظر هذه المهارة في القوائم والجداول والتغذيات الطويلة التي تحمّل كل العناصر دفعة واحدة، وتقترح طريقة لعرض ما يظهر على الشاشة فقط. وهي موجهة إلى المطورين الذين يبنون لوحات تحكم أو نتائج بحث أو تغذيات.

متى تستخدمها

  • ✓عندما تطلب من الوكيل تسريع صفحة تعرض مئات أو آلاف الصفوف.
  • ✓عندما تصبح لوحة تحكم أو جدول إدارة أو تغذية بطيئة في التمرير بسبب حجمها.
  • ✓عندما تريد أن تقيس ما إذا كانت القائمة الطويلة تحتاج فعلًا إلى هذا التغيير قبل إضافة كود جديد.

رابط المهارة

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

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

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

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

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

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

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

“جدول الإدارة عندي فيه آلاف الصفوف، والتمرير فيه بطيء. هل تستطيع المساعدة في تسريعه؟”

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

كيف تعمل

يتحقق الوكيل مما إذا كانت الصفحة تعرض عناصر كثيرة دفعة واحدة. وإذا كان الأمر كذلك، يقترح أسلوب النافذة windowing الذي يُبقي الصفوف الظاهرة فقط مع هامش صغير في الصفحة.

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

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

Virtualize long lists and tables

Rendering hundreds or thousands of rows at once wastes memory and makes style calculation, layout, and painting more expensive. Virtualization keeps large collections responsive by limiting the number of mounted nodes.

Quick Reference

  • Render only what is visible plus a small overscan buffer instead of the entire list
  • Use virtualization when repeated rows or cards push DOM size and layout cost too high
  • Preserve item sizing, keyboard access, and screen-reader semantics when windowing content
  • Measure scroll smoothness, memory use, and DOM node count before and after the change

Check

Inspect long lists, tables, grids, and feeds for places where the UI renders every item at once. Flag views where the number of mounted rows or cards is large enough to create DOM, memory, or scroll-performance issues.

Fix

Introduce list or table virtualization so only the visible rows plus overscan render, while preserving sizing, keyboard navigation, and any required sticky headers or selection behavior.

Explain

Explain list virtualization, why it improves performance for large collections, and the tradeoffs engineers need to watch for around measurement and accessibility.

Code Review

Inspect collection components, data tables, infinite feeds, and dashboards. Flag places where rendering the full dataset creates excessive DOM nodes or scroll jank, and verify the virtualization strategy still preserves item identity, semantics, and expected interactions.


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

Rule page: https://frontendchecklist.io/rules/performance/list-virtualization

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

هل يلزم هذا لكل القوائم؟

لا. تقول المهارة إن القوائم الصغيرة لا تحتاج عادة إلى هذا التعقيد الإضافي.

هل يؤثر هذا في الاستخدام بلوحة المفاتيح؟

قد يؤثر، لذلك على الوكيل أن يحافظ على عمل الوصول بلوحة المفاتيح ودعم قارئ الشاشة.

كيف أعرف أنه نجح؟

توصي المهارة بقياس سلاسة التمرير واستهلاك الذاكرة وعدد عناصر الصفحة قبل التغيير وبعده.

التفاصيل

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

Use when reviewing dashboards, admin tables, search results, or feeds with many repeated items. Confirm the bottleneck is DOM or rendering cost before introducing virtualization because small lists usually do not need the added complexity.

repo: thedaviddias/Front-End-Checklist

الشعبية

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

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

0

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

التعليقات

  • …

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

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