src/browser/with-api/loader.js
/**
     * Add image to loading queue
     *
     * @param {string} prefix Collection prefix
     * @param {string} icon Image name
     * @param {boolean} preload True if icon is being pre-loaded
     * @return {boolean} True if image was added to queue
     */
Add image to loading queue
@param {string} prefix Collection prefix
@param {string} icon Image name
@param {boolean} preload True if icon is being pre-loaded
@return {boolean} True if image was added to queue
Add image to loading queue @param { string } prefix Collection prefix @param { string } icon Image name @param { boolean } preload True if icon is being pre - loaded @return { boolean } True if image was added to queue
function addToQueue(prefix, icon, preload) {
        if (!preload && !local.domready && !config.loadBeforeDOMReady) {
            addToDOMReadyQueue(prefix, icon);
            return true;
        }
        if (
            (queue[prefix] !== void 0 && queue[prefix].indexOf(icon) !== -1) ||
            (tested[prefix] !== void 0 && (tested[prefix] === true || tested[prefix].indexOf(icon) !== -1))
        ) {
            return false;
        }
        if (queue[prefix] === void 0) {
            queue[prefix] = [];
        }
        queue[prefix].push(icon);
        if (!queued) {
            queued = true;
            window.setTimeout(loadQueue, 0);
        }
        return true;
    }
function addToQueue ( prefix , icon , preload ) { if ( ! preload && ! local . domready && ! config . loadBeforeDOMReady ) { addToDOMReadyQueue ( prefix , icon ) ; return true ; } if ( ( queue [ prefix ] !== void 0 && queue [ prefix ] . indexOf ( icon ) !== - 1 ) || ( tested [ prefix ] !== void 0 && ( tested [ prefix ] === true || tested [ prefix ] . indexOf ( icon ) !== - 1 ) ) ) { return false ; } if ( queue [ prefix ] === void 0 ) { queue [ prefix ] = [ ] ; } queue [ prefix ] . push ( icon ) ; if ( ! queued ) { queued = true ; window . setTimeout ( loadQueue , 0 ) ; } return true ; }
Add image to loading queue
 @param {string} prefix Collection prefix
 @param {string} icon Image name
 @param {boolean} preload True if icon is being pre-loaded
 @return {boolean} True if image was added to queue
Add image to loading queue @param { string } prefix Collection prefix @param { string } icon Image name @param { boolean } preload True if icon is being pre - loaded @return { boolean } True if image was added to queue
// Check if DOM is ready // Check queue // Add to queue