Skip to content

Instantly share code, notes, and snippets.

@stephenscaff
Created January 16, 2014 09:12
Show Gist options
  • Save stephenscaff/8451964 to your computer and use it in GitHub Desktop.
Save stephenscaff/8451964 to your computer and use it in GitHub Desktop.
Webfont Loader for Google fonts. (just swapping the: WebFontConfig={ typekit: {id: 'myKitId'} };
WebFontConfig={
google:{families:["Lato:400,700,300,100: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 t = document.getElementsByTagName("script")[0];
t.parentNode.insertBefore(wf, t)
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment