| 132 | } |
| 133 | |
| 134 | const completeBootstrap = (onBootstrap: () => void, onSkipBootstrap?: () => void): void => { |
| 135 | if (envInjector.destroyed) { |
| 136 | return; |
| 137 | } |
| 138 | |
| 139 | if (!envInjector.get(ENABLE_ROOT_COMPONENT_BOOTSTRAP, true)) { |
| 140 | onSkipBootstrap?.(); |
| 141 | return; |
| 142 | } |
| 143 | |
| 144 | if (typeof ngDevMode === 'undefined' || ngDevMode) { |
| 145 | const imagePerformanceService = envInjector.get(ImagePerformanceWarning); |
| 146 | imagePerformanceService.start(); |
| 147 | } |
| 148 | |
| 149 | onBootstrap(); |
| 150 | }; |
| 151 | |
| 152 | return _callAndReportToErrorHandler(exceptionHandler, ngZone, envInjector, () => { |
| 153 | const pendingTasks = envInjector.get(PendingTasksInternal); |