eBay / ebay-font

A small utility to efficiently load custom web fonts
MIT License
175 stars 19 forks source link

Safari 10 - Promise does not fire always with native document.fonts.load #6

Closed RajaRamu closed 6 years ago

RajaRamu commented 7 years ago

document.fonts.load and FontFace.prototype.load does not fire promise always. There is bug with safari 10. if its safari-10, use FontFaceObserver.

Bugs are listed below https://bugs.webkit.org/show_bug.cgi?id=165037 https://bugs.webkit.org/show_bug.cgi?id=164902

senthilp commented 7 years ago

@RajaRamu Good observation. Instead of using direct Safari UA check, we should use some sort of feature check. We can discuss this.