FontLoader
FontLoader copied to clipboard
The FontLoader detects and notifies when specified font-families loaded and rendered by the browser.
Need to load fonts by ajax call, first time function works well, second and next times function returns success instantly. ``` jQuery.ajax({ type: "POST", url: ajax_url, data: 'act=getFont&name='+font, success: function(data)...
See https://developer.mozilla.org/en-US/docs/Web/API/CSS_Font_Loading_API. That page states that it works in Chrome since 35.0 and in Firefox since 41.0. http://www.w3.org/TR/css-font-loading/ https://drafts.csswg.org/css-font-loading/ http://www.w3.org/TR/css-font-loading/#font-face-set-css
When loadFonts is called and the window is not focused (Chrome 43), the timeout occurs. This results in the _testContainer to be detached from the DOM. Once the window regains...
This project could benefit by adding more testing. Would be great to integrate with Travis for automated testing as well. Let's discuss some of the possibilities here. Things I'd like...