lib/kissy/5.0.0-alpha.3/lib/build/loader.js
function cssPoll() {
        for (var url in monitors) {
            var callbackObj = monitors[url],
                node = callbackObj.node;
            if (isCssLoaded(node, url)) {
                if (callbackObj.callback) {
                    callbackObj.callback.call(node);
                }
                delete monitors[url];
            }
        }

        if (Utils.isEmptyObject(monitors)) {
            logger.debug('clear css poll timer');
            timer = 0;
        } else {
            timer = setTimeout(cssPoll, CSS_POLL_INTERVAL);
        }
    }
function cssPoll() {
        for (var url in monitors) {
            var callbackObj = monitors[url],
                node = callbackObj.node;
            if (isCssLoaded(node, url)) {
                if (callbackObj.callback) {
                    callbackObj.callback.call(node);
                }
                delete monitors[url];
            }
        }

        if (Utils.isEmptyObject(monitors)) {
            logger.debug('clear css poll timer');
            timer = 0;
        } else {
            timer = setTimeout(cssPoll, CSS_POLL_INTERVAL);
        }
    }
function cssPoll ( ) { for ( var url in monitors ) { var callbackObj = monitors [ url ] , node = callbackObj . node ; if ( isCssLoaded ( node , url ) ) { if ( callbackObj . callback ) { callbackObj . callback . call ( node ) ; } delete monitors [ url ] ; } } if ( Utils . isEmptyObject ( monitors ) ) { logger . debug ( 'clear css poll timer' ) ; timer = 0 ; } else { timer = setTimeout ( cssPoll , CSS_POLL_INTERVAL ) ; } }
single thread is ok
single thread is ok