5 ms·
All browsers: why can't you display an intermediate font while downloading the custom font-faces? It just sucks so badly. Most time I'm stuck on a 8 KByte/sec
by mschuster91 13y ago
All browsers: why can't you display an intermediate font while downloading the custom font-faces?
It just sucks so badly. Most time I'm stuck on a 8 KByte/sec cellphone connection, and I have to wait YEARS just to read text - or press ESC to force display of system fonts.
- lampe3 13y agoOne solution for your problem could be that the Browser displays the font in the system font and when the costume font is loaded it can change to it. I think chrome beta on android does that but iam not sure right now
- gizmo 13y agoRecent versions of Internet Explorer use placeholder fonts by default.
- saurik 13y agoYou might think this is just "they didn't bother implementing that", but in fact some people considered this a feature and browsers added "flash of invisible text" as a feature. http://www.paulirish.com/2009/fighting-the-font-face-fout/ http://www.paulirish.com/2009/fighting-the-font-face-fout/ (There are also some interesting ramifications to these various techniques for the various "icon fonts" that seem to be all the rage these days.) http://filamentgroup.com/lab/bulletproof_icon_fonts/ http://filamentgroup.com/lab/bulletproof_icon_fonts/
- mschuster91 13y agoThat would require site code changes and does not help me, the victim of a severe lack of testing...
- ehsanu1 13y agoI thought specifying a fallback font does that. Of course, problem is that many websites try to avoid the dreaded FOUT, and end up hiding text, or even the whole site, until fonts are loaded.
- mschuster91 13y agoThe latter are the worst of the bunch. Same goes for those fucktards who make their site load (i.e. remove the display:none on the content) on loading/error event (timeout etc) of the social media plugins. Oh, and of course no images and no nothing has been loaded... so ANOTHER time pressing ESC and hope that I finally will get some text. Please, developers out there: test your websites on REAL mobile devices WITHOUT LTE/3G/UMTS. You WILL be surprised how fucking awful your site is on a low-bandwidth link. (end of rant)
- rblatz 13y agoI'm not even sure I know where to get a "real" mobile device or connection.
- eropple 13y agoTry Safari in the Simulator while using Network Link Conditioner. Really slick.
- mschuster91 13y agoIf in doubt, use "tc" to do traffic shaping (on Linux) or SeriousBit's NetBalancer (on Windows). http://www.cyberciti.biz/faq/linux-traffic-shaping-using-tc-to-control-http-traffic/ http://www.cyberciti.biz/faq/linux-traffic-shaping-using-tc-... I regularly test my websites with various tc settings, including traffic shaping, packet loss, line outages etc. Lots of manual work, but it really helps to see which parts of your API can be traffic-optimized.
- voltagex_ 13y agoIn 2014, targeting mainly Western users, what am I using as a "real connection"? In Australia, even UMTS can drop below 1 megabit on some carriers.
- ferongr 13y ago>All browsers Obligatory "Firefox doesn't suffer from this". It will display the default sans-serif system font while the website's font load.
- abrowne 13y agoAnd the default serif for a custom serif. (Or maybe just because my default font is serif?)
- sergiotapia 13y agoI have just given up on using Google Webfonts. :) I just use: font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
- thristian 13y agoWhy not just: font-family: sans-serif; Most people will get their browser's Helveticoid default anyway, and people who have changed their browser's default will get the font they actually wanted.
- cpeterso 13y agoI've read that Windows' Helvetica font is uglier than Arial (perhaps a hinting issue) and, since few Windows'users have Helvetica Neue, that a recommended don't family is thus: font-family: "Helvetica Neue", Arial, sans-serif;
- Raphael 13y agoUnless the situation has changed, the Windows registry has an entry to show Arial when Helvetica is requested.
- acdha 13y agoBrowsers are in a tough spot: when you specify a font, there's no way to programmatically determine how critical that font is to your design (see the FOUT discussion saurik linked above). There are two things which we need to fix this: 1. Simple, robust font load events so you could treat this like any other type of content and make the decision about whether to display an alternative until something finishes loading: http://dev.w3.org/csswg/css-font-load-events/ http://dev.w3.org/csswg/css-font-load-events/ 2. As a lower priority, browser support for using the @font-face unicode-range property to avoid unnecessary downloads. It's not uncommon for sites to use a webfont with known support for non-ASCII characters to avoid issues with older operating systems & browsers. Unfortunately, there's a huge problem with this because specifying a webfont will cause it to be downloaded at least as soon as an element on the page uses that font[1] and it'd be really nice if there was a way to e.g. list a font which should only be downloaded if one of the earlier fonts in the stack doesn't contain the needed glyph so I could say "font-family: Arial, noto-sans" and have a Windows 7 user not download anything while still displaying correctly, if slower, for an XP user. 1. Test cases & bug reports here: http://chris.improbable.org/experiments/browser/webfonts/universal-noto-sans/ http://chris.improbable.org/experiments/browser/webfonts/uni...
- tracker1 13y agoJust want to point out one minor nit to pick.. NEVER specify "Arial" or "Helvetica" as fonts and simply fall back to `sans-serif` On OSX you'll get Helvetica, on Windows you'll get Arial, which display better on their given platforms.. a Helvetica-like font is the default on pretty much every given platform for web browsers. I would say, that if a fallback font is specified in the font-face rule, then that should be used while the web-font is downloaded. Also, it would be nice, as you say, if a fallback would be used when a glyph isn't in the specified font (only for that glyph).
- acdha 13y agoYou're generally right about `sans-serif` vs. Arial/Helvetica. There used to be a complication in that even on OS X, Arial has significantly more glyphs than Helvetica but as browsers get better font substitution support and stop breaking ligatures (http://chris.improbable.org/experiments/browser/combining-half-marks/ http://chris.improbable.org/experiments/browser/combining-ha...) this matters less. It would, of course, also be significantly less important if they optimized the download decision so you could use something like noto for everything and not have to worry about significant visual differences.
- kybernetikos 13y agoActually, they can, the only issue is that most web developers take deliberate measures to avoid 'Flash Of Unstyled Content'.