- From: Giannis Agogiatis via GitHub <sysbot+gh@w3.org>
- Date: Wed, 13 Nov 2024 11:31:18 +0000
- To: public-css-archive@w3.org
Agog-io has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-font-loading-3] Should document.fonts.add delay Window load events? ==
I was adviced to ask this here from [here](https://github.com/whatwg/html/issues/10758)
I noticed that using something akin to the following block of code in the current implementation on chrome and firefox , before window load event firing , delays it for the duration of loading font-name.ttf
```
const font = new FontFace(
"font-name",
"url(font-name.ttf)"
);
document.fonts.add(font);
```
I am building a system that uses JS to load fonts and I would like to know if this is intended (current behavior actually helps my implementation).
There was a very similar discussion to this [here](https://github.com/whatwg/html/issues/5824) on whatwg/html
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11192 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 13 November 2024 11:31:19 UTC