Similar to #5824 , I noticed that using something akin to the following block of code 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 , but I would like to know if I am depending on a bug or not ).
What is the issue with the HTML Standard?
Similar to #5824 , I noticed that using something akin to the following block of code before window load event firing , delays it for the duration of loading font-name.ttf
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 , but I would like to know if I am depending on a bug or not ).
Edit: Tested on Chromium and Firefox Desktop