web-font-loading-recipes icon indicating copy to clipboard operation
web-font-loading-recipes copied to clipboard

Hi Zach! I have a question...

Open VanderSP opened this issue 4 years ago • 4 comments
trafficstars

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.

VanderSP avatar Sep 03 '21 05:09 VanderSP

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

zachleat avatar Sep 03 '21 14:09 zachleat

look -> https://github.com/guardian/auto-foft

VanderSP avatar Sep 03 '21 14:09 VanderSP

Ah that isn’t my code, you probably want to file an issue with that repo?

zachleat avatar Sep 03 '21 14:09 zachleat

i know, but... i tried with one example of yours, and my curiosity is about i can´t never log inside the IF...

VanderSP avatar Sep 03 '21 14:09 VanderSP