mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 19:43:04 +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
|
// support async tag or hmr
|
||||||
if (hasValue(environment.universal) && !environment.universal.preboot) {
|
if (document.readyState === 'complete' && hasValue(environment.universal) && !environment.universal.preboot) {
|
||||||
main();
|
main();
|
||||||
} else {
|
} else {
|
||||||
document.addEventListener('DOMContentLoaded', main);
|
document.addEventListener('DOMContentLoaded', main);
|
||||||
|
Reference in New Issue
Block a user