Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-09-30 09:09:47 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-09-30 09:09:47 +0300
commit3c02fe83263991811e94e8126be8f065afe15372 (patch)
tree8b40a76a3b1d6350248705a0b56d09a85f780c72 /app/assets/javascripts/main.js
parentbfb1d5b17bdb47db29956a33b85e6ef2adc47ac0 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/main.js')
-rw-r--r--app/assets/javascripts/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js
index f4882f3994f..95da3ce5d7e 100644
--- a/app/assets/javascripts/main.js
+++ b/app/assets/javascripts/main.js
@@ -97,6 +97,8 @@ gl.lazyLoader = new LazyLoader({
observerNode: '#content-body',
});
+initRails();
+
// Put all initialisations here that can also wait after everything is rendered and ready
function deferredInitialisation() {
const $body = $('body');
@@ -170,8 +172,6 @@ function deferredInitialisation() {
// Adding a helper class to activate animations only after all is rendered
setTimeout(() => $body.addClass('page-initialised'), 1000);
-
- initRails();
}
document.addEventListener('DOMContentLoaded', () => {