I'm working on adding a loading state to an app. Testing with throttling the network to 4g speeds, I noted that the angular app isn't rendering anything until DOMContentLoaded is fired. That event is fired after 3.58 seconds, but (according to screen shots captured in chrome inspector, and plain observation of page load) the page is visible before 1 second.
I would like a way to render the angular app before DOMContentLoaded
Circled in red is the first frame where the loading icon in visible. Note that content (loaded server side) is visible before that. Also note the large break in time between that screen shot and the screen shot prior.
Expose a bootstrapping method which takes the root elem as an argument, and doesn't wait for domcontentloaded
var elem = document.querySelector('#root'); platformBrowserDynamic().bootstrapModuleRaw(AppModule, elem)
I tried using existing manual bootstrapping methods (using
ngDoBootstrap), but that still waited for the domcontentloaded event
|Issue Title||Created Date||Updated Date|