Last active
August 29, 2015 14:07
-
-
Save zachleat/68611e730f6c2280e8c9 to your computer and use it in GitHub Desktop.
WOFF2 Feature Test
This file contains 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
var supportsWoff2 = (function( win ){ | |
if( !( "FontFace" in win ) ) { | |
return false; | |
} | |
var f = new win.FontFace( "woff2test", 'url( "data:font/woff2;base64," ) format( "woff2" )' ); | |
f.load(); | |
return f.status == 'loading'; | |
})( this ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment