diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-02-20 23:58:50 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-02-21 00:06:14 -0600 |
commit | ba5ae88aad87fd6728dad4f84a044980c3aa4e5f (patch) | |
tree | 4a5b85050c5dd8db85f6d1ab46c3d9fdba622e09 /app | |
parent | 58acacd6805bd3cb2faa3208fe5c4b7a69afeaa7 (diff) | |
download | gitlab-ce-ba5ae88aad87fd6728dad4f84a044980c3aa4e5f.tar.gz |
use DOMContentLoaded event over jQuery .ready to ensure execution ordermore-dispatcher-refactoring
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index 65e751dd460..dc9e5bb03f4 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -61,7 +61,7 @@ gl.lazyLoader = new LazyLoader({ observerNode: '#content-body', }); -$(() => { +document.addEventListener('DOMContentLoaded', () => { const $body = $('body'); const $document = $(document); const $window = $(window); |