Skip to content
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

Hi Zach! I have a question... #10

Open
VanderSP opened this issue Sep 3, 2021 · 4 comments
Open

Hi Zach! I have a question... #10

VanderSP opened this issue Sep 3, 2021 · 4 comments

Comments

@VanderSP
Copy link

VanderSP commented Sep 3, 2021

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.

@zachleat
Copy link
Owner

zachleat commented Sep 3, 2021

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

@VanderSP
Copy link
Author

VanderSP commented Sep 3, 2021

@zachleat
Copy link
Owner

zachleat commented Sep 3, 2021

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

@VanderSP
Copy link
Author

VanderSP commented Sep 3, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants