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
.load()
).try{}catch{}
construction catches exceptions (errors) during execution of the code inside of atry{}
block, so that there will be no messages in error console and other javascript code on the page will not break. URL written in the way of//site.com/file.js
allows browser to select what to use for the load of file.js - the regular http or https protocol and it depends on the protocol used to open html page with that code.