Replies: 2 comments
-
@KokoDoko I think this is a great idea! I'd love if this was added as a Resource! I would support that change! |
Beta Was this translation helpful? Give feedback.
0 replies
-
To reply to my own post, I found this resource that also makes font loading easier: https://fontfaceobserver.com |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have found that if I load fonts using javascript, I don't have to use polling or eventlisteners to be sure that fonts from the CSS file have loaded. It makes loading fonts a lot easier. I add this code to
resources.js
, and I remove the font loading code fromindex.html
andstyle.css
. The actual font file has to be in the project.It seems that the listener is not needed. It would be cool if this code could be added to the official
Loader
class as aResource
?You can use it like this
Beta Was this translation helpful? Give feedback.
All reactions