4 ms·
It will read just fine. But no, I would not recommend it. But much rather that than a multi-megabyte one-liner. One time. Per site. On slow and/or expensive mo
by tjoff 7y ago
It will read just fine. But no, I would not recommend it. But much rather that than a multi-megabyte one-liner.
One time. Per site. On slow and/or expensive mobile connection?
The png will also display without the custom font...
- e12e 7y agoPng has poor screen reader support, though it can be amended via an alt tag, I suppose. [ed: but breaks copy and paste, which might be bad for an about page listing address and contact information - personally I'd much prefer fallback font to a png]. It's a shame there are no "bandwidth" queries in css, like there are @media queries - the client should be able to say - just content and essential downloads, please.
- tunetheweb 7y agoThey’ve been proposed!: https://drafts.csswg.org/mediaqueries-5/#prefers-reduced-data https://drafts.csswg.org/mediaqueries-5/#prefers-reduced-dat... You can already do this with JavaScript now: https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation https://developer.mozilla.org/en-US/docs/Web/API/NetworkInfo... though as you can see from the bottom of that link, Browser support is limited at the moment (and experimental so may even be removed/changed!).