Menu

Tiny icons as data URIs — skip another network hop for chrome assets
📰

Tiny icons as data URIs — skip another network hop for chrome assets

DEV Community: frontend·Sherotree·about 1 month ago
#XXkf6RsD
#devtofrontend#devto#dev#chrome#tiny
Long article (865 words) — no AI summary yet.
Reading 0:00
15s threshold

Chrome UI is full of tiny assets that should never fight the critical path: a 16×16 chevron, a mute glyph, a spinner frame, a toolbar mark that shows up before the rest of the page finishes deciding who you are.

I still see those shipped as separate /icons/*.svg or /icons/*.png requests. On a good day they ride HTTP/2 multiplexing and you barely notice. On a cold CDN edge, a flaky hotel Wi‑Fi, or a settings drawer that mounts before the icon sprite is warm, you get the classic flash of empty boxes.

For chrome icons — not hero art, not user avatars — I default to inlining as data URIs more often than I used to.

What I mean by "chrome assets"

Not the marketing hero. Not a product screenshot.…

Continue reading — create a free account

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