Delay Angular 2 bootstrapping until DOMContentLoaded
This commit is contained in:
parent
ca99a2304c
commit
41f1f6fe82
|
|
@ -18,4 +18,6 @@ if (hotModuleReplacement) {
|
||||||
|
|
||||||
// Boot the application
|
// Boot the application
|
||||||
const platform = platformUniversalDynamic();
|
const platform = platformUniversalDynamic();
|
||||||
platform.bootstrapModule(AppModule);
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
platform.bootstrapModule(AppModule);
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue