example/lib/requirejs/require.js
function isPriorityDone() {
            var priorityDone = true,
                priorityWait = config.priorityWait,
                priorityName, i;
            if (priorityWait) {
                for (i = 0; (priorityName = priorityWait[i]); i++) {
                    if (!loaded[priorityName]) {
                        priorityDone = false;
                        break;
                    }
                }
                if (priorityDone) {
                    delete config.priorityWait;
                }
            }
            return priorityDone;
        }
function isPriorityDone() {
            var priorityDone = true,
                priorityWait = config.priorityWait,
                priorityName, i;
            if (priorityWait) {
                for (i = 0; (priorityName = priorityWait[i]); i++) {
                    if (!loaded[priorityName]) {
                        priorityDone = false;
                        break;
                    }
                }
                if (priorityDone) {
                    delete config.priorityWait;
                }
            }
            return priorityDone;
        }
function isPriorityDone ( ) { var priorityDone = true , priorityWait = config . priorityWait , priorityName , i ; if ( priorityWait ) { for ( i = 0 ; ( priorityName = priorityWait [ i ] ) ; i ++ ) { if ( ! loaded [ priorityName ] ) { priorityDone = false ; break ; } } if ( priorityDone ) { delete config . priorityWait ; } } return priorityDone ; }
Determine if priority loading is done. If so clear the priorityWait
Determine if priority loading is done . If so clear the priorityWait