Comments on: Font events: Controlling the flash of unstyled text https://blog.typekit.com/2010/10/29/font-events-controlling-the-fout/ News about Typekit Tue, 23 Nov 2010 09:00:51 +0000 hourly 1 https://wordpress.org/?v=5.4.1 By: Noah Read https://blog.typekit.com/2010/10/29/font-events-controlling-the-fout/#comment-1956 Tue, 23 Nov 2010 09:00:51 +0000 http://blog.typekit.com/?p=1839#comment-1956 Thanks so much for this article. I used it on a site I am currently preparing and it worked like a charm.

]]>
By: Anders Ringqvist https://blog.typekit.com/2010/10/29/font-events-controlling-the-fout/#comment-1955 Fri, 05 Nov 2010 08:42:43 +0000 http://blog.typekit.com/?p=1839#comment-1955 In reply to Anders Ringqvist.

Ok, that´s great, thanks.

]]>
By: Rafal https://blog.typekit.com/2010/10/29/font-events-controlling-the-fout/#comment-1954 Tue, 02 Nov 2010 20:46:26 +0000 http://blog.typekit.com/?p=1839#comment-1954 In reply to Rafal.

Sura Mandy, email sent, hope it helps.

]]>
By: Mandy Brown https://blog.typekit.com/2010/10/29/font-events-controlling-the-fout/#comment-1953 Tue, 02 Nov 2010 19:50:47 +0000 http://blog.typekit.com/?p=1839#comment-1953 In reply to Rafal.

Rafal, could you share your URL with support@typekit.com? We can take a look. Using the .wf-loading classes should not affect Safari’s behavior.

]]>
By: Rafal https://blog.typekit.com/2010/10/29/font-events-controlling-the-fout/#comment-1952 Tue, 02 Nov 2010 17:30:47 +0000 http://blog.typekit.com/?p=1839#comment-1952 Thanks, I now have only a short, acceptable delay in Firefox, but a 3 seconds delay in font display in Safari, which—correct me if I am wrong—does not need this delay at all.

Couldn’t this target problem browsers (i.e. Firefox) only?

]]>
By: Sean McBride https://blog.typekit.com/2010/10/29/font-events-controlling-the-fout/#comment-1951 Tue, 02 Nov 2010 17:24:01 +0000 http://blog.typekit.com/?p=1839#comment-1951 In reply to Anders Ringqvist.

Jason said it: “It’s up to you to use the font events as you want”. If you prefer the Firefox-style “first render in fallbacks, then in webfonts” behavior for loading your site, you can achieve that effect in all browsers using font events as well. Just apply the Typekit font-family names only on .wf-active. For example:

.blog-title {
font-family: Arial, sans-serif;
}

.wf-active .blog-title {
font-family: “museo-sans-1”, “museo-sans-2”, Arial, sans-serif;
}

The point is that font events give you control over how web fonts load in all browsers. You can do nothing and go with the each browser’s default behavior or use font events to achieve a particular behavior in all browsers. I wrote from the perspective of matching the WebKit behavior since many web developers seem to prefer that (as long as the fonts load quickly). Typekit’s JavaScript has a timeout that ensures that people won’t see hidden text for too long.

]]>
By: Jason https://blog.typekit.com/2010/10/29/font-events-controlling-the-fout/#comment-1950 Tue, 02 Nov 2010 13:00:41 +0000 http://blog.typekit.com/?p=1839#comment-1950 In reply to Anders Ringqvist.

Speaking as a Typekit user, I think calling it “a while” may be misleading. This is a very brief < 1 second flash. In that context, going from no text to styled text might be less distracting because users' eyes might not even notice the brief millisecond of load time. Alternatively, loading the fallback font and then switching over to the Typekit font draws a lot more attention to that millisecond.

Ultimately, it's up to you to use the font events as you want.

]]>
By: Anders Ringqvist https://blog.typekit.com/2010/10/29/font-events-controlling-the-fout/#comment-1949 Tue, 02 Nov 2010 08:48:44 +0000 http://blog.typekit.com/?p=1839#comment-1949 So if I understand TypeKit´s point of view correct: It´s better to not see any content at all for a while rather than see (and be able to read) unstyled content for a while? How do you handle potential ‘@font-face service outage’?

]]>
By: Sean McBride https://blog.typekit.com/2010/10/29/font-events-controlling-the-fout/#comment-1948 Mon, 01 Nov 2010 17:42:01 +0000 http://blog.typekit.com/?p=1839#comment-1948 In reply to Adrian Schmidt.

It’s one more tool in the web developer’s toolbox, but it’s up to you to design what you want the loading experience of your page to be. Some developers prefer to show content as soon as possible, even if the resources to style the content correctly aren’t yet available. Others would rather wait a short time to show the content once it can be styled correctly.

]]>
By: Adrian Schmidt https://blog.typekit.com/2010/10/29/font-events-controlling-the-fout/#comment-1947 Mon, 01 Nov 2010 14:24:15 +0000 http://blog.typekit.com/?p=1839#comment-1947 With all the work going into non-blocking JS, isn’t this a step backwards? Is blocking web-fonts really a good idea?

]]>