Skip to content

Instantly share code, notes, and snippets.

@hail2u
Created December 10, 2013 21:29
Show Gist options
  • Save hail2u/7900548 to your computer and use it in GitHub Desktop.
Save hail2u/7900548 to your computer and use it in GitHub Desktop.
非同期にWebフォントを読もうとする。意味あるのかしらない。
<script>
(function (d, f) {
var l = d.createElement('link');
l.rel = 'stylesheet';
l.media = 'only all';
l.href = 'http://fonts.googleapi.com/css?family=' + f;
var s = d.getElementsByTagName('script')[0];
s.parentNode.insertBefore(l, s);
})(document, 'Source+Sans+Pro:200,400,700|Source+Code+Pro:400,600|Alegreya:400,400italic');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment