Hello Jan,
This is because the templater finds "{" and "}" and decides that it is an instruction to him that he doesn't know.
Try this:
Code:
{**
* Head list children
*
* ...
*
* @ListChild (list="head", weight="700")
*}
<script type="text/javascript" src="//use.typekit.net/dap7cpb.js"></script>
<script type="text/javascript"><!--try{Typekit.load();}catch(e){}--></script>
Does this help?
A better way would be
decorating the getJSFiles() method in the \XLite\View\Controller widget and adding a new JavaScript file that does the job on the page load.