본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)75k · #2821

dom-size

하는 일

이 스킬은 페이지에 HTML 요소가 몇 개 있는지, 그리고 얼마나 깊이 중첩되어 있는지 확인합니다. 페이지가 느리거나 무겁게 느껴지는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓긴 목록이 있는 페이지가 스크롤하기 느려질 때.
  • ✓브라우저 감사가 아주 큰 페이지 구조를 보고할 때.
  • ✓쓸모없는 래퍼 요소가 많은 페이지일 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/dom-size/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 페이지에 HTML 요소가 너무 많은지 확인해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 브라우저 도구로 전체 요소 수와 중첩 깊이를 측정하고, 불필요한 래퍼를 제거하고 긴 목록을 작은 부분으로 나눠 보여 주라고 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Reduce DOM size and complexity

An excessive DOM size increases memory usage, slows down style calculations, and makes layout reflows more expensive, leading to poor interaction performance.

Quick Reference

  • Keep total DOM nodes below 1,500
  • Avoid deep nesting (maximum depth < 32)
  • Use virtualization for long lists of elements

Check

Check the total number of DOM nodes and the maximum DOM depth using Lighthouse or Chrome DevTools.

Fix

Simplify the HTML structure, remove unnecessary wrapper elements, and implement virtualization for large lists.

Explain

Explain the performance impact of a large DOM tree on memory and rendering speed.

Code Review

Review the routes, assets, and loading behavior that affect Reduce DOM size and complexity. 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/dom-size

자주 묻는 질문

요소가 몇 개면 너무 많은가요?

전체 요소를 약 1,500개 이하로, 중첩은 약 32단계 이하로 유지하라고 스킬은 제안합니다.

가상화(virtualization)는 무엇인가요?

화면에 보이는 목록 항목만 보여 주어 페이지를 가볍게 유지하는 방법입니다.

어떻게 측정하나요?

Lighthouse나 Chrome DevTools를 쓰라고 스킬은 제안합니다.

상세 정보

작성자의 원본 설명

Use when auditing slow page loads, heavy assets, or rendering delays related to Reduce DOM size and complexity. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#2821
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬