html-size
하는 일
이 스킬은 각 페이지의 HTML 크기와 그 크기를 키우는 요소를 확인합니다. 페이지가 매우 크거나 검색 결과에서 콘텐츠가 빠지는 사이트 운영자와 개발자를 위한 것입니다.
사용하는 경우
- ✓긴 페이지의 일부 콘텐츠가 검색 결과에 나타나지 않을 때.
- ✓페이지 HTML 안에 큰 JSON 데이터나 인라인 SVG가 들어 있을 때.
- ✓감사 결과에서 HTML 문서가 매우 크다고 나올 때.
스킬 링크
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/html-size/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 페이지의 HTML이 Google이 전부 읽기에 너무 큰지 확인해 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 각 페이지의 원본 HTML 크기를 측정하고 용량을 차지하는 원인을 찾습니다. 큰 인라인 데이터나 압축되지 않은 스크립트처럼 크기를 키우는 내용을 옮기거나 줄이도록 제안합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Keep HTML documents under crawl limits
Googlebot has a documented crawl size limit of approximately 15MB per HTML document. Content beyond this threshold is not parsed or indexed. Excessively large HTML also slows Googlebot crawls, reducing how many of your pages are crawled per budget period.
Quick Reference
- Googlebot stops parsing HTML beyond approximately 15MB; content after that point is not indexed
- Large HTML is usually caused by inline JSON data dumps, excessive inline SVG, or unminified JavaScript in
<script>tags - Target HTML document size under 2MB for optimal crawl efficiency; investigate anything over 5MB
Check
Measure the raw HTML response size (before compression) for each page. Flag pages over 2MB (investigate) and over 5MB (critical). Identify the cause of oversized HTML: (1) Large inline JSON (<script id='__NEXT_DATA__'> or similar). (2) Inline SVG files. (3) Base64-encoded images in HTML. (4) Inline CSS with large amounts of utility classes. (5) Unminified scripts in <script> tags.
Fix
- Measure:
curl -so /dev/null -w '%{size_download}' https://yoursite.com/page | awk '{print $1/1024 " KB"}' - If large inline JSON is the cause (common in Next.js
__NEXT_DATA__):- Reduce data passed to
getServerSideProps/getStaticProps— only pass what the page renders - Use React Server Components (Next.js 13+) to avoid client hydration payloads
- Reduce data passed to
- If inline SVG is the cause: move SVGs to external files and load with
<img>or<use>. - If base64 images are the cause: serve images from a CDN and reference via URL.
- Enable gzip/Brotli compression on the server — Googlebot fetches the compressed response.
- Minify HTML output in production (remove whitespace and comments).
Explain
Google's crawl infrastructure parses only the first ~15MB of an HTML document. Pages that exceed this limit have their tail content silently omitted from Google's index. Beyond the hard limit, large HTML documents consume more crawl budget, meaning fewer of your pages are crawled per day. This particularly affects large e-commerce sites or pages that server-render large datasets into HTML.
Code Review
Check the response Content-Length header or measure the raw HTML byte count. Inspect <script type='application/json'> or <script id='__NEXT_DATA__'> blocks — count their size in bytes. Flag any single block over 500KB. Check for inline SVG elements (look for <svg> in body HTML) that should be external files. Verify HTML is served with gzip or Brotli encoding.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
자주 묻는 질문
스킬이 언급하는 크기 제한은 무엇인가요?
Googlebot이 약 15MB에서 HTML 파싱을 멈춘다고 언급하며, HTML을 약 2MB 아래로 유지하라고 제안합니다.
HTML을 크게 만드는 흔한 원인은 무엇인가요?
큰 인라인 JSON 데이터, 인라인 SVG, base64 이미지, 긴 유틸리티 클래스 CSS, 압축되지 않은 스크립트입니다.
크기는 어떻게 측정하나요?
스킬은 페이지의 다운로드 크기를 보여 주는 간단한 명령줄 확인 방법을 제안합니다.
상세 정보
작성자의 원본 설명
Use when auditing page weight for crawl efficiency, investigating why certain page content is not appearing in Google's index, or reviewing server-rendered pages that embed large JSON payloads in HTML.
인기도
- GitHub 스타
- 75k
- 순위
- #2872
- 라이선스
- MIT
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
frontendchecklist
75k명령줄 도구를 사용해 380개가 넘는 규칙으로 프런트엔드 코드와 실시간 페이지를 접근성, 속도, SEO, 보안 측면에서 점검합니다.
frontend-checklist-global
75kFront-End Checklist의 386개 규칙 전체로 프런트엔드 프로젝트를 감사하고, 발견한 문제마다 구체적인 해결 방법을 제시합니다.
404-page
75k없는 페이지 화면에 도움이 되는 링크가 있고 실제 404 상태 코드를 반환하는지 확인해, 길을 잃은 방문자를 돕습니다.
about-page
75k사이트를 운영하는 사람을 설명하는 명확한 소개 페이지가 있는지 검토해, 방문자와 검색 엔진의 신뢰를 높입니다.
비슷한 스킬
competitive-platform-analysis
280k경쟁사를 식별하고 분류하며 걸러내 더 깊은 분석을 하기 전에 경쟁 구도를 이해하도록 돕습니다.
competitive-report-structure
280k경쟁사 정보를 결합해 전체 시장 현황과 추천 사항을 보여 주는 종합 보고서를 만들고, 팀의 방향을 맞추도록 돕습니다.
lead-intelligence
280k중요한 사람을 찾고 연락하도록 에이전트를 돕습니다. 잠재 고객을 분석하고 접근 방법을 제안하며, 이메일과 소셜 미디어를 통한 연락을 관리합니다.