Skip to content

Instantly share code, notes, and snippets.

@rayboyd
Forked from rcarver/gist:192350
Created December 12, 2009 22:42
Show Gist options
  • Save rayboyd/255121 to your computer and use it in GitHub Desktop.
Save rayboyd/255121 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
// *** EXPERIMENTAL ***
//
// This is an experimental method to be notified when Typekit's fonts have loaded.
//
// It will almost certainly change! Please do not use this on a live site. Please
// do let us know what you think by forking this gist, contacting us at
// support@typekit.com or on Get Satisfaction - http://getsatisfaction.com/typekit
//
Typekit.load("your-kit-id", {
onLoad: function(data) {
// fonts are not loaded!
},
onLoadComplete: function(data) {
// fonts are loaded!
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment