web-font-loading-recipes
web-font-loading-recipes copied to clipboard
Hi Zach! I have a question...
Hi Zach, i want to know when the snippet is activated so i can understand and test it.... i never see snippet firing a console log... i know it´s related to something about cache maybe...
i will repeat the text i asked to the author of auto foft, that´s based on your library... also i would like to know from you, if he uses a nice approach
Hi, after doing a lot of testing and trying to understand it, I can´t figure out it entirely.
the Zach idea, was to inject a smaller URI then naturally fall to the entire set... then there´s some script that i dunno how exactly how to test it, it´s optimization when what happens again?
and for example, in your snippet this line:
if ('fonts' in document && document.fonts.status !== 'loaded') { console.log(" I would never know how to get here ... } I never can log something like that... and from what I´ve read this code seems to be explained on the How it works section...
haha help me!!! i want to do the things rightly.
Thanks in advance,
Vander.
Where are you seeing document.fonts.status?
You might want to learn more about the CSS Font Loading API: https://medium.com/@matuzo/getting-started-with-css-font-loading-e24e7ffaa791
look -> https://github.com/guardian/auto-foft
Ah that isn’t my code, you probably want to file an issue with that repo?
i know, but... i tried with one example of yours, and my curiosity is about i can´t never log inside the IF...