Re: [css-fonts][css-font-loading] Does font loading affect window.load event?

Koji Ishii wrote:

> We had a discussion whether window.load event should be delayed until
> all font resources are loaded or not, but I was unable to point to the
> definition.
>
> Is this defined somewhere, or discussed before?

Not quite sure who "we" is here but I guess I'm assuming Google folks?

Short answer is that this isn't explicitly defined, either in an events
spec or in a CSS spec. The window.load event is supposed to fire when all
dependent resources have been loaded but Webkit progency fire relatively
early, before all fonts are loaded. Firefox fires after all fonts are
loaded. Dunno what IE does.

This is one reason authors should try to use the font loading API to assure
that fonts are loaded, rather than relying on browsers to include fonts
among the resources that must load before the load event fires.

Received on Tuesday, 30 June 2015 04:42:25 UTC