Skip to content

Instantly share code, notes, and snippets.

@wilransz
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilransz/4670229ed2ffc45bddef to your computer and use it in GitHub Desktop.
Save wilransz/4670229ed2ffc45bddef to your computer and use it in GitHub Desktop.
Google Web Fonts met JavaScript
<script type="text/javascript">
WebFontConfig = {
google: { families: [ 'Raleway: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);
})(); </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment