diff options
author | Phil Hughes <me@iamphill.com> | 2019-02-19 11:46:11 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-02-19 11:46:11 +0300 |
commit | 0e07a5aaa5d715e16f5af72f7d93a0597d66ff43 (patch) | |
tree | a892524bf07dd0a462b457a944b93d2ec5c6ed62 /app/assets/javascripts/main.js | |
parent | 5ff775fdef99eeec1f25bea7baf5480fa402f714 (diff) |
Fixes some requests not being tracked in performance bar
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57886
Diffstat (limited to 'app/assets/javascripts/main.js')
-rw-r--r-- | app/assets/javascripts/main.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index 63db4938cd7..1b722c0505a 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -78,7 +78,6 @@ function deferredInitialisation() { initUserPopovers(); if (document.querySelector('.search')) initSearchAutocomplete(); - if (document.querySelector('#js-peek')) initPerformanceBar({ container: '#js-peek' }); addSelectOnFocusBehaviour('.js-select-on-focus'); @@ -145,6 +144,8 @@ document.addEventListener('DOMContentLoaded', () => { const $sidebarGutterToggle = $('.js-sidebar-toggle'); let bootstrapBreakpoint = bp.getBreakpointSize(); + if (document.querySelector('#js-peek')) initPerformanceBar({ container: '#js-peek' }); + initLayoutNav(); // Set the default path for all cookies to GitLab's root directory |