$.when(
    //this list is automatically generated by
    //Utilites > HTML additional headers > Script files
    $.Deferred(function(deferred) { $(deferred.resolve);})
).done(function() {
    //this list is automatically generated by
    //Utilities > HTML additional headers > Additional AngularJS modules to load
    let aModules = [
    ];

    //test each module name to prevent AngularJS from failing to load
    let aWorkingModules = [];
    for(let i = 0; i < aModules.length; i++)
    {
        try {
            angular.module(aModules[i]); //test if module loads
            aWorkingModules.push(aModules[i]); //put working module on list
        }
        //throw an error, if module can not be loaded
        catch(ex) { console.log('unable to load module ' + aModules[i]); }
    }
    //resume bootstrap process which was halted with /defer_angular_bootstrap.js
    //and load working modules
    angular.resumeBootstrap(aWorkingModules);
});