Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
72
rated 0 times [  78] [ 6]  / answers: 1 / hits: 24291  / 10 Years ago, wed, november 19, 2014, 12:00:00

I am looking at this page.



I can see this in the header. Can someone explain what it does. I can't see any mention of it and what it is used for:



  <script class=js-allow-in-head src=//use.typekit.net/txx2jfv.js></script>
<script class=js-allow-in-head>try{Typekit.load();}catch(e){}</script>


thanks


More From » html

 Answers
0

Typekit is a provider of webfonts. They probably are the only service that benefits from having the script in the head, because it blocks rendering while the fonts download, thus preventing a FOUT (flash of unstyled text)



The script works by fetching some css files that contain the fonts in base64 encoding.


[#68768] Saturday, November 15, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
siena

Total Points: 199
Total Questions: 91
Total Answers: 91

Location: Pitcairn Islands
Member since Fri, Oct 15, 2021
3 Years ago
;