2 ms·
I was working on a product that did user-agent sniffing to figure out which image formats were supported (when to serve WebP). A feature-detection based approa
by jefftk 7y ago
I was working on a product that did user-agent sniffing to figure out which image formats were supported (when to serve WebP). A feature-detection based approach is substantially slower because it breaks the preload scanner: https://www.jefftk.com/p/why-parse-the-user-agent https://www.jefftk.com/p/why-parse-the-user-agent
- Dylan16807 7y agoThat was true in 2014! But since 2015 we've had the <picture> element to pick different versions of an image based on screen or capability.