Commit 49f1d1da 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 5fa9332d
import '~/pages/projects/blob/show/index';
import initBlob from '../../shared/init_blob';
document.addEventListener('DOMContentLoaded', initBlob);
initBlob();
import { initIterationsList } from 'ee/iterations';
import { Namespace } from 'ee/iterations/constants';
document.addEventListener('DOMContentLoaded', () => initIterationsList(Namespace.Project));
initIterationsList(Namespace.Project);
import { initIterationReport } from 'ee/iterations';
import { Namespace } from 'ee/iterations/constants';
document.addEventListener('DOMContentLoaded', () => {
initIterationReport({ namespaceType: Namespace.Project });
});
initIterationReport({ namespaceType: Namespace.Project });
import initPolicyEditorApp from 'ee/threat_monitoring/policy_editor';
document.addEventListener('DOMContentLoaded', initPolicyEditorApp);
initPolicyEditorApp();
import initPolicyEditorApp from 'ee/threat_monitoring/policy_editor';
document.addEventListener('DOMContentLoaded', initPolicyEditorApp);
initPolicyEditorApp();
import initThreatMonitoringApp from 'ee/threat_monitoring';
document.addEventListener('DOMContentLoaded', initThreatMonitoringApp);
initThreatMonitoringApp();
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