nl_tokens: Initiate script load and register bundle .
pl_tokens: function loadjs ( paths , arg1 , arg2 ) { var bundleId , args ; // bundleId (if string) if ( arg1 && arg1 . trim ) bundleId = arg1 ; // args (default is {}) args = ( bundleId ? arg2 : arg1 ) || { } ; // throw error if bundle is already defined if ( bundleId ) { if ( bundleId <mask> bundleIdCache ) { throw "LoadJS" ; } else { bundleIdCache [ bundleId ] = true ; } } function loadFn ( resolve , reject ) { loadFiles ( paths , function ( pathsNotFound ) { // execute callbacks executeCallbacks ( args , pathsNotFound ) ; // resolve Promise if ( resolve ) { executeCallbacks ( { success : resolve , error : reject } , pathsNotFound ) ; } // publish bundle load event publish ( bundleId , pathsNotFound ) ; } , args ) ; } if ( args . returnPromise ) return new Promise ( loadFn ) ; else loadFn ( ) ; }