W3C home > Mailing lists > Public > www-style@w3.org > September 2011

Re: [cssom] exposing loading of font (and other) resources

From: Charles Pritchard <chuck@jumis.com>
Date: Fri, 02 Sep 2011 14:27:36 -0700
Message-ID: <4E614A48.5000204@jumis.com>
To: Edward O'Connor <eoconnor@apple.com>
CC: www-style@w3.org
On 9/2/11 2:18 PM, Edward O'Connor wrote:
> Hi,
> It would be nice if there were a reliable way for Web authors to be
> notified when their @font-face resources have successfully loaded.
> Currently authors resort to several hacks to acheive this.
> One option would be to have objects in the CSSOM that correspond to each
> embedded resource referenced from within the loaded stylesheets. Authors
> could then attach event handlers to such objects, query their current
> state, etc.
> Another, perhaps more author-friendly option would be for some new event
> to be fired at the Document whenever a resource linked to in CSS gets
> loaded. The event would carry information about which resource(s) it
> refers to.
> Thoughts?

Does this apply, equally, to CSS images?
background-url:, content: url, etc.
Received on Friday, 2 September 2011 21:27:58 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:03 UTC