src/browser/with-api/loader.js
/**
     * Load queue. Delay queue if DOM isn't ready
     */
Load queue. Delay queue if DOM isn't ready
Load queue . Delay queue if DOM isn ' t ready
function addToDOMReadyQueue(prefix, icon) {
        if (domqueue[prefix] === void 0) {
            domqueue[prefix] = Object.create(null);
        }
        domqueue[prefix][icon] = true;
        if (local._loaderDOMReady !== void 0) {
            return;
        }
        local._loaderDOMReady = local.DOMReadyCallback;
        local.DOMReadyCallback = function() {
            local._loaderDOMReady();
            Object.keys(domqueue).forEach(function(prefix) {
                Object.keys(domqueue[prefix]).forEach(function(icon) {
                    if (!Iconify.iconExists(icon, prefix)) {
                        addToQueue(prefix, icon, true);
                    }
                });
            });
        };
    }
function addToDOMReadyQueue ( prefix , icon ) { if ( domqueue [ prefix ] === void 0 ) { domqueue [ prefix ] = Object . create ( null ) ; } domqueue [ prefix ] [ icon ] = true ; if ( local . _loaderDOMReady !== void 0 ) { return ; } local . _loaderDOMReady = local . DOMReadyCallback ; local . DOMReadyCallback = function ( ) { local . _loaderDOMReady ( ) ; Object . keys ( domqueue ) . forEach ( function ( prefix ) { Object . keys ( domqueue [ prefix ] ) . forEach ( function ( icon ) { if ( ! Iconify . iconExists ( icon , prefix ) ) { addToQueue ( prefix , icon , true ) ; } } ) ; } ) ; } ; }
Load queue.
Load queue .
// Add callback