W3C home > Mailing lists > Public > www-style@w3.org > October 2010

Re: @font-face and slow downloading

From: John Daggett <jdaggett@mozilla.com>
Date: Wed, 20 Oct 2010 08:52:03 -0700 (PDT)
To: Beth Dakin <bdakin@apple.com>
Cc: www-style@w3.org
Message-ID: <1952864577.124800.1287589923003.JavaMail.root@cm-mail03.mozilla.org>

Beth Dakin wrote:

> > Which behavior is worse, popping vs. no text, is somewhat a user
> > preference, so it would be nice to allow users to vary this to their
> > choosing and to match their network environment (i.e. slow/fast
> > network).
> 
> I agree with you and HÃ¥kon that different behavior is ideal in
> different user environments (network speed, bandwidth, etc), but I
> don't think a user preference is the right way to solve that. If we
> think this is a real issue for sites using web fonts, then I think we
> should let web developers control the behavior by adding syntax to
> @font-face to indicate what should happen in the slow-downloading
> case. I haven't figured out what that syntax would look like, but
> fundamentally, the current WebKit behavior is non-ideal, the current
> Firefox behavior is non-ideal, and I am sure that any hard-coded magic
> delay number will also be non-ideal in many circumstances. I think the
> web developer is in the best position to determine what is ideal based
> on how he/she uses the web font in his/her design. 

Ah, ok, your thinking is that there should be additional @font-face
syntax to specify the timeout?  Something like this?

  @font-face {
    font-family: BongoTheFont;
    src: url(Bongo.woff);
    font-fallback-timeout: 5;  /* show fallback font after 5 seconds */
  }
  
While this is something authors would prefer to control, it seems more
like a property that should be left to the user to control, since the
irritation level will vary by user depending upon whether no text or
popping text is more of an irritant for a given network connection and
device.

Cheers,

John Daggett
Received on Wednesday, 20 October 2010 15:52:36 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:33 GMT