Why Unoptimized Images and Large Files Slow Down Websites
When auditing website speed or server bandwidth consumption, the largest bottlenecks are rarely located on the homepage alone. Content editors frequently upload uncompressed photographs directly from cameras or smartphones (3 MB to 8 MB PNG or JPEG files), attach multi-megabyte PDF brochures or ZIP archives to inner articles, or embed heavy JavaScript bundles and custom font files across subpages.
Single-page speed tests only inspect one URL at a time, leaving oversized media and document files hidden deeper inside the site architecture undetected. A site-wide file size crawler traverses your internal links or XML sitemap automatically, extracts every embedded image, document, stylesheet, script, and media asset, measures its byte weight, and ranks all discovered files from largest to smallest.
How the File Size Crawler Works
1. Three Discovery Modes: Domain Crawl, XML Sitemap, or URL List
- Domain Crawl: Enter a root domain or starting page URL. The crawler fetches the HTML document, discovers all internal pages up to your selected crawl depth, and extracts every linked or embedded asset on each page.
- XML Sitemap Scan: Paste a
sitemap.xmlor sitemap index URL. The scanner parses all listed page URLs and inspects the images, documents, and code assets referenced inside each page. - Custom URL List: Paste a list of specific page or asset URLs (one per line) to measure and compare their exact file sizes in bulk.
2. Comprehensive Asset Extraction from HTML DOM
For every crawled HTML page, the parser inspects the document structure to locate static and dynamic resources across all standard markup patterns:
- Images: Standard
<img src>tags, lazy-loaded attributes (data-src,data-lazy-src), responsivesrcsetand<picture>sources, SVG<image>elements, video poster frames, favicons, and Open Graph / Twitter social preview images (og:image,twitter:image). - Documents & Archives: Direct hyperlinks (
<a href>) pointing to downloadable files includingPDF,DOC,DOCX,XLS,XLSX,PPT,PPTX,ZIP,RAR,7Z,TAR.GZ, andCSV. - Scripts, Styles & Media: External JavaScript files (
<script src>), CSS stylesheets (<link rel="stylesheet">), preloaded web fonts (WOFF2,TTF,OTF), and embedded HTML5<video>or<audio>streams.
3. Lightweight HTTP Byte Measurement
To measure file sizes quickly without overloading your origin server, the scanner inspects HTTP response headers (Content-Length and Content-Range) via lightweight requests first. When a server streams dynamic assets without a Content-Length header, the proxy safely counts the transferred byte stream with a strict safety cap and records the exact size in kilobytes (KB) or megabytes (MB).
Interpreting File Size Thresholds and Optimization Targets
- Under 100 KB (Optimal): Ideal weight for standard web images, icons, CSS stylesheets, and individual JavaScript modules.
- 100 KB to 300 KB (Moderate): Acceptable for high-resolution hero banners or primary feature illustrations, provided they use modern compression formats such as WebP or AVIF.
- Over 300 KB (Heavy): Images exceeding 300 KB directly delay Largest Contentful Paint (LCP) on mobile connections. Legacy JPEG and PNG images in this range can typically be reduced by 50% to 80% by converting them to WebP.
- Over 1 MB (Critical Bottleneck): Uncompressed photos, oversized PDF documents, or unminified JavaScript bundles that consume excessive CDN bandwidth and degrade page load times.