sparcopen / infrastructure

A home on the web for our community owned infrastructure work.
https://infrastructure.sparcopen.org
MIT License
4 stars 2 forks source link

font flash on load #48

Closed JosephMcArthur closed 4 years ago

JosephMcArthur commented 4 years ago

When doing a hard refresh you can see some fonts load and get used before our proper ones, and it causes a bit of a flash.

We may not care, but I want to flag as usually I don't see this.

sssoz commented 4 years ago

The dreaded FOUT. It should only happen when we clear the cache. I haven’t seen it on the site before though.

JosephMcArthur commented 4 years ago

Any chance you know how to fix it? If not, I may ask for a hand from cottage labs.

sssoz commented 4 years ago

The default Google Fonts way doesn't do that usually

On Tue, 16 Jun 2020, 17:16 Joseph McArthur, notifications@github.com wrote:

Any chance you know how to fix it? If not, I may ask for a hand from cottage labs.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/sparcopen/infrastructure/issues/48#issuecomment-644864963, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABS4A5TDX4SRHC2XO4HQJF3RW6LEZANCNFSM4N7WJQAQ .

sssoz commented 4 years ago

Can’t reproduce this issue, even with hard refresh...

JosephMcArthur commented 4 years ago

ah, I may have made a partial fix!

The flash I see now is on pages like this https://infrastructure.sparcopen.org/risk-mitigation on "risk mitigation" and "contents".

What are the weights there. Are those included in the initial request to fonts?

JosephMcArthur commented 4 years ago

Hmm I can see they are.

I'm going to make this won't fix, it's extremely minor.