mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 19:13:08 +00:00
87968: Lift readyState complete check from Universal 12
This commit is contained in:
@@ -47,7 +47,7 @@ const main = () => {
|
||||
};
|
||||
|
||||
// support async tag or hmr
|
||||
if (hasValue(environment.universal) && !environment.universal.preboot) {
|
||||
if (document.readyState === 'complete' && hasValue(environment.universal) && !environment.universal.preboot) {
|
||||
main();
|
||||
} else {
|
||||
document.addEventListener('DOMContentLoaded', main);
|
||||
|
Reference in New Issue
Block a user