본문으로 건너뛰기
Skillpedia
SEO75k · #2872

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가 스킬을 읽고 지침을 따릅니다.

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

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/html-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이 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

  1. Measure: curl -so /dev/null -w '%{size_download}' https://yoursite.com/page | awk '{print $1/1024 " KB"}'
  2. 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
  3. If inline SVG is the cause: move SVGs to external files and load with <img> or <use>.
  4. If base64 images are the cause: serve images from a CDN and reference via URL.
  5. Enable gzip/Brotli compression on the server — Googlebot fetches the compressed response.
  6. 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.

Rule page: https://frontendchecklist.io/rules/seo/html-size

자주 묻는 질문

스킬이 언급하는 크기 제한은 무엇인가요?

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.

repo: thedaviddias/Front-End-Checklist

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬