-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request - support for webfontloader state in Nuxt instance #51
Comments
Any news on this? @mystrdat how did you find a work around? using webfontloader in vanilla vue i just fire a function once fonts are loaded to indicate that they are loaded int the store. |
I've used a mutationObserver to watch the classes that webfontloader adds to the html element and then I propagate the state through Vuex. |
@mystrdat Nice - thanks for the tip! i applied that to my project - works good - although not when publishing as target server, oh well, not ideal, but only matters in production & works there. |
Would it be possible to somehow pipe the webfontloader state or the event callbacks to the Nuxt instance? In my usecase, I need to run certain visual mechanics right after a webfont has been loaded and rendered on screen. There are workarounds to how I can do it, but I was hoping a systematic solution could come from this module itself.
The text was updated successfully, but these errors were encountered: