Event callbacks not called
Author: bitbayCreated Nov 23, 2016Updated Apr 21, 2025
Using custom fonts to load i just get the "loading" and the "active" events to get called.
...
console.log('loading fonts');
WebFont.load({
"custom": {
"families": families,
"urls": urls
},
loading: function () {
console.log('loading');
},
active: function () {
console.log('active');
},
inactive: function () {
console.log('inactive');
},
fontloading: function (fontFamily, fontDescription) {
console.log('fontloading: ' + fontFamily + ' (' + fontDescription + ')');
},
fontactive: function (fontFamily, fontDescription) {
console.log('fontactive: ' + fontFamily + ' (' + fontDescription + ')');
},
fontinactive: function (fontFamily, fontDescription) {
console.log('fontinactive: ' + fontFamily + ' (' + fontDescription + ')');
}
})Fonts loading fine, and see the following in console:
loading fonts
loading
activeAre there any edge-cases where the other events are not "fired" or is this a bug? Thanks.
Source: typekit/webfontloader