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

Fonts do not update if I switch format #7

Closed
gsarig opened this issue Oct 4, 2020 · 1 comment
Closed

Fonts do not update if I switch format #7

gsarig opened this issue Oct 4, 2020 · 1 comment

Comments

@gsarig
Copy link

gsarig commented Oct 4, 2020

Hi,

I noticed the following issue: If I load the fonts as woff2 and then regret it and add the WOFF parameter for IE compatibility, the local fonts folder keeps containing the WOFF2 version, and vice versa. Basically, it's whatever loads first. After that, if you want to override the setting you need to manually remove the fonts folder and reload the page to fetch the fonts again.

Ideally, this switch should be handled from within the script, either by re-downloading the fonts when the format changes or by downloading both versions and load whichever is set in wp_enqueue_style accordingly.

@aristath
Copy link

aristath commented Oct 5, 2020

Good catch 👍
Should be OK now.

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