src/browser/with-api/loader.js
/**
         * Send JSONP request by adding script tag to document
         *
         * @param {string} prefix
         * @param {Array} items
         */
Send JSONP request by adding script tag to document
@param {string} prefix
@param {Array} items
Send JSONP request by adding script tag to document @param { string } prefix @param { Array } items
function addScript(prefix, items) {
            var url = urls[prefix],
                element;
            if (typeof url === 'function') {
                url.call(Iconify, prefix, items);
                return;
            }
            url = url.replace('{icons}', items.join(','));
            element = document.createElement('script');
            element.setAttribute('type', 'text/javascript');
            element.setAttribute('src', url);
            element.setAttribute('async', true);
            document.head.appendChild(element);
        }
function addScript ( prefix , items ) { var url = urls [ prefix ] , element ; if ( typeof url === 'function' ) { url . call ( Iconify , prefix , items ) ; return ; } url = url . replace ( '{icons}' , items . join ( ',' ) ) ; element = document . createElement ( 'script' ) ; element . setAttribute ( 'type' , 'text/javascript' ) ; element . setAttribute ( 'src' , url ) ; element . setAttribute ( 'async' , true ) ; document . head . appendChild ( element ) ; }
Send JSONP request by adding script tag to document
 @param {string} prefix
 @param {Array} items
Send JSONP request by adding script tag to document @param { string } prefix @param { Array } items
// Replace icons list // Create script