Commit 19a63f7b authored by Jannik Lehmann's avatar Jannik Lehmann

Remove DOMContentLoaded Eventlisteners

Removing DOMContentLoaded Eventlisteners from
index files since the scripts
are embedded using the defer tag.
parent b53f0806
import initMergeRequestAnalyticsApp from 'ee/analytics/merge_request_analytics';
document.addEventListener('DOMContentLoaded', initMergeRequestAnalyticsApp);
initMergeRequestAnalyticsApp();
import initProductivityAnalyticsApp from 'ee/analytics/productivity_analytics';
document.addEventListener('DOMContentLoaded', () => {
initProductivityAnalyticsApp();
});
initProductivityAnalyticsApp();
import initRepositoryAnalyticsApp from 'ee/analytics/repository_analytics';
document.addEventListener('DOMContentLoaded', () => {
initRepositoryAnalyticsApp();
});
initRepositoryAnalyticsApp();
......@@ -5,17 +5,15 @@ import issuableInitBulkUpdateSidebar from '~/issuable_init_bulk_update_sidebar';
const EPIC_BULK_UPDATE_PREFIX = 'epic_';
document.addEventListener('DOMContentLoaded', () => {
initFilteredSearch({
page: 'epics',
isGroup: true,
isGroupDecendent: true,
useDefaultState: true,
filteredSearchTokenKeys: FilteredSearchTokenKeysEpics,
stateFiltersSelector: '.epics-state-filters',
});
initFilteredSearch({
page: 'epics',
isGroup: true,
isGroupDecendent: true,
useDefaultState: true,
filteredSearchTokenKeys: FilteredSearchTokenKeysEpics,
stateFiltersSelector: '.epics-state-filters',
});
initEpicCreateApp(true);
initEpicCreateApp(true);
issuableInitBulkUpdateSidebar.init(EPIC_BULK_UPDATE_PREFIX);
});
issuableInitBulkUpdateSidebar.init(EPIC_BULK_UPDATE_PREFIX);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment