Skip to content

Instantly share code, notes, and snippets.

@kennethormandy
Created July 5, 2014 23:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennethormandy/c99dc452b2dd57e439bf to your computer and use it in GitHub Desktop.
Save kennethormandy/c99dc452b2dd57e439bf to your computer and use it in GitHub Desktop.
//<![CDATA[
WebFontConfig = {
google: {
families: ['Roboto+Slab:400,700:latin']
},
typekit: {
id: 'kax3zci'
},
monotype: {
projectId: '0d4aee2f-16cb-4cc3-9186-1e2317d930ab'
},
timeout: 5000,
loading: function() {
ga('send', 'event', 'webfontloader', 'loading');
},
active: function() {
ga('send', 'event', 'webfontloader', 'active');
smokeproofs();
},
inactive: function() {
ga('send', 'event', 'webfontloader', 'inactive');
smokeproofs();
},
fontloading: function(familyName, fvd) {
ga('send', 'event', 'webfontloader', 'fontloading', familyName + '-' + fvd);
},
fontactive: function(familyName, fvd) {
ga('send', 'event', 'webfontloader', 'fontactive', familyName + '-' + fvd);
},
fontinactive: function(familyName, fvd) {
ga('send', 'event', 'webfontloader', 'fontinactive', familyName + '-' + fvd);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment