webfontloader: active-event not being triggered when two calls made back to back
The following JS Fiddle showcases the issue (running 1.6.21.min.js): https://jsfiddle.net/hp307g3w/1/
You’ll see that while the second font’s fontactive
event is fired, the active
is not.
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 16 (2 by maintainers)
Any update on this bug? It’s quite old I’d have expected it to be fixed??
For anyone who still needs a fix
I’ve managed to get it working by downgrading to
V1.6.7
Can’t actually remember. Our code is a bit jumbled at the mo. Looking at it, it looks like I’m tracking fonts being loaded through an array. Should have abstracted it out as a patch, but I assumed owner of this repo would fix the issue.
It looks like this was introduced when we made the modules load asynchronously. I think I know how to fix it, I’ll try to find some time for it this week.