Skip to content

Instantly share code, notes, and snippets.

@Narga
Forked from anselmh/load-webfonts-async.js
Created August 13, 2013 04:07
Show Gist options
  • Save Narga/6217809 to your computer and use it in GitHub Desktop.
Save Narga/6217809 to your computer and use it in GitHub Desktop.
WebFontConfig = {
google: { families: [ 'Istok+Web:400,700:latin' , 'Lora:400,700:latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment