webfont.js
WebFontConfig = { typekit: { id: 'XXXXX' }, loading: function() { // console.log('loading'); }, active: function() { // console.log('active'); }, inactive: function() { // console.log('inactive'); } }; (function(d) { var wf = d.createElement('script'), s = d.scripts[0]; wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js'; s.parentNode.insertBefore(wf, s); })(document);