Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove delayed bootstrap

Oliver Günther1257a3bebdff
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index 5ddcf1a806c..4f5e6c8bd61 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -41,15 +41,11 @@ whenDebugging(() => {
// Import the correct locale early on
void initializeLocale()
.then(() => {
- jQuery(() => {
- // Now that DOM is loaded, also run the global listeners
- initializeGlobalListeners();
-
- // Due to the behaviour of the Edge browser we need to wait for 'DOM ready'
- void platformBrowserDynamic()
- .bootstrapModule(OpenProjectModule)
- .then(() => {
- jQuery('body').addClass('__ng2-bootstrap-has-run');
- });
- });
+ void platformBrowserDynamic()
+ .bootstrapModule(OpenProjectModule)
+ .then(() => {
+ // Now that DOM is loaded, also run the global listeners
+ initializeGlobalListeners();
+ document.body.classList.add('__ng2-bootstrap-has-run');
+ });
});