Created
August 31, 2017 14:37
-
-
Save nchristus/98a86c493f934a7601b39f9f3b686e9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js" async></script> | |
<script> | |
WebFontConfig = { | |
google: { | |
families: ['Source Sans Pro:400,700:latin'] | |
}, | |
timeout: 2000, | |
active: function() { | |
sessionStorage.fonts = true; | |
} | |
}; | |
</script> | |
<!-- FOUT --> | |
<script> | |
(function() { | |
if (sessionStorage.fonts) { | |
document.documentElement.classList.add('wf-active'); | |
} | |
})(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment