A
A
Alex Glebov2016-09-08 08:05:18
css
Alex Glebov, 2016-09-08 08:05:18

Fonts in base64 and localStorage, what are the pitfalls?

Does anyone connect fonts for all projects in this way indiscriminately?
css-live.ru/articles-css/bystraya-zagruzka-veb-shr...
glivera-team.github.io/fonts/2016/03/02/fonts.html There
seems to be no
base64 flickering
sdfgdfg.esy.es/tests /font.html
font-face
sdfgdfg.esy.es/tests/font-old.html
and Google likes more
https://developers.google.com/speed/pagespeed/insi...
https://developers.google. com/speed/pagespeed/insi...
Who sees the cons?
except that the font will be loaded anyway, regardless of whether it is on the page or not.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2016-09-08
@llgruff

2 points:
If someone has scripts disabled, you should include the font as standard and wrap it in <noscript>.
If you change your font file that you load into localStoragethe browser, it will not understand and will not update. Therefore, you need to improve the code by reference by adding a file version check.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question