src/utilities.js
function partialCallback(text, urlIndex) {
        result[urlIndex] = text;
        numComplete++;

        // When all files have downloaded
        if (numComplete == numUrls) {
            callback(result);
        }
    }
function partialCallback(text, urlIndex) {
        result[urlIndex] = text;
        numComplete++;

        // When all files have downloaded
        if (numComplete == numUrls) {
            callback(result);
        }
    }
function partialCallback ( text , urlIndex ) { result [ urlIndex ] = text ; numComplete ++ ; // When all files have downloaded if ( numComplete == numUrls ) { callback ( result ) ; } }
Callback for a single file
Callback for a single file