DEV Community

Discussion on: Increasing my PageSpeed score from 92% to 100% using CSS only

Collapse
 
longzero profile image
LONG • Edited

The comments mentioning svg make me think of base64. Has anyone tested if background-image was a sprite in base64? It would mean one request for CSS AND for icons which is pretty neat.

Collapse
 
fjones profile image
FJones

Since base64 image urls are just that - urls - it should work. That said, you wouldn't want a sprite in there (unless used as a custom property). You'd just want individual images. That said, reusability, readability, and effort to change the icons later can make this more tedious than it's worth for pagespeed.