Skip to content
Snippets Groups Projects
Commit e325367a authored by Mike Greiling's avatar Mike Greiling
Browse files

Merge branch 'include-all-axios-requests-in-performance-bar' into 'master'

Start performance bar eagerly

See merge request gitlab-org/gitlab-ce!20201
parents 83ea3d68 52d57822
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
/* eslint-disable consistent-return, no-new */
 
import $ from 'jquery';
import Flash from './flash';
import GfmAutoComplete from './gfm_auto_complete';
import { convertPermissionToBoolean } from './lib/utils/common_utils';
import GlFieldErrors from './gl_field_errors';
import Shortcuts from './shortcuts';
import SearchAutocomplete from './search_autocomplete';
import performanceBar from './performance_bar';
 
function initSearch() {
// Only when search form is present
Loading
Loading
@@ -72,9 +72,7 @@ function initGFMInput() {
 
function initPerformanceBar() {
if (document.querySelector('#js-peek')) {
import('./performance_bar')
.then(m => new m.default({ container: '#js-peek' })) // eslint-disable-line new-cap
.catch(() => Flash('Error loading performance bar module'));
performanceBar({ container: '#js-peek' });
}
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment