How to use the webfontloader.WebFont.on function in webfontloader

To help you get started, we’ve selected a few webfontloader examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kuzzmi / ember-express-blog / client / app / initializers / nav-indicator.js View on Github external
didTransition() {
                if (areFontsLoaded) {
                    setTimeout(setIndicator, 1);
                } else {
                    WebFont.on('active', () => {
                        areFontsLoaded = true;
                        setIndicator();
                    }, true);
                }
                return true;
            }
        }

webfontloader

Web Font Loader gives you added control when using linked fonts via @font-face.

Apache-2.0
Latest version published 7 years ago

Package Health Score

64 / 100
Full package analysis

Popular webfontloader functions