Teaser: Increasingly popular elements and strategically modular elegance
All of this new markup that I prattle on about – how big of a deal is it, really? It has been a while since we last checked in with Chromium’s usage stats; so let’s (click the links for historical charts):
w
descriptors andsizes
are both employed in one out of every 5,000 Chromium page loads.picture
: 1 in 2,000x
descriptors: 1 in 300
These charts raise interesting questions. Why is usage for all of these features up on the weekends and down during the work-week? Why has x
descriptor usage fallen off slightly, after its meteoric rise? Most recent articles on the topic explicitly recommend using srcset
+ w
descriptors for the most common case: images in flexible layouts that need to scale across both viewport sizes and screen resolutions. But that markup is currently dead last in the usage derby. Will it catch up?
One interesting thing to note: sizes
caught up with w
descriptors fast, right after it was made mandatory, despite the fact that browsers handle size
-less markup the same way that they always did. Three cheers for making changes without breaking pages!
“Container queries,” née “Element queries,” now have a spec URL. There’s little more than an abstract and some good intentions there at the moment, but from such humble beginnings, great things are born.
The Picturefill 2.3.1 update that I mentioned last week – which provided support for the Spartan developer preview – fixes more than just Spartan. Due to the way that the plugin used to feature-test, Picturefills ≤ 2.3.0 throw errors on WebKit Nightly, too. Which presumably means that those old Picturefills will cause errors in Mobile/Safari in the near future. So, upgrade!
- Yoav has formally expressed an intent-to-implement Client Hints in WebKit. I’d be more worried about the stiff initial resistance if that sort of response hadn’t characterized literally everything that Yoav has managed to do for the RICG over the last couple of years.
- Dan Matthew wrote up his respimg implementation experiences. The performance gains that he details (3.4 MB → 522 Kb) are particularly huge due to Dan’s simultaneous switch to lossy image compression (using JPEGs instead of PNGs for screenshots), but still! A thousand more blog posts like this, please!
- Did you know that Google provides a free on-the-fly image re-sizer? I sure didn’t.
See you in a couple of weeks!
—eric