Menu

104 of 114 homepages ship no images at all. Their only image is a 270 KB social card.
πŸ“°

104 of 114 homepages ship no images at all. Their only image is a 270 KB social card.

DEV Community: htmlΒ·tong zhangΒ·8 days ago
#Jxp2RAWc
#devto2#devto#dev#pages#network
Reading 0:00
15s threshold

I crawled the home pages of 114 sites that all belong to the same small publishing network β€” prediction-market and crypto-ticker properties, mostly Next.js and mostly Cloudflare. Every one answered HTTP 200. Between them, the HTML contains 727 <img> elements .

104 of those 114 pages contain none of them.

That number surprised me enough to re-run the crawl three different ways before I believed it: parsing <img> with a regex, checking for lazy-loading attributes and srcset , and then separately fetching every linked stylesheet to see whether the images were hiding in CSS instead. They mostly weren't. The median page is 60,452 characters of HTML with no image reference anywhere in it.

Here is the counting code, if you want to point it at your own site:

import re , urllib . parse

IMG_RE = re . compile ( r " <img\b([^>]*)> " , re . I | re . S ) ATTR_RE = re .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.