Use Font Loading API instead of FontDetect

This commit is contained in:
LoveEevee
2020-03-09 16:05:13 +03:00
parent 9248a52194
commit 4d370762f8
5 changed files with 12 additions and 28 deletions

View File

@@ -47,6 +47,9 @@ function browserSupport(){
var el = document.createElement("a")
el.style.setProperty("--a", 1)
return el.style.length !== 0
},
"Font Loading API": function(){
return typeof FontFace === "function"
}
}
failedTests = []