Commit 378307bc 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
...@@ -2,8 +2,6 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; ...@@ -2,8 +2,6 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select';
import initLDAPGroupLinks from 'ee/groups/ldap_group_links'; import initLDAPGroupLinks from 'ee/groups/ldap_group_links';
import { pipelineMinutes } from '../../users/pipeline_minutes'; import { pipelineMinutes } from '../../users/pipeline_minutes';
document.addEventListener('DOMContentLoaded', () => { initLDAPGroupsSelect();
initLDAPGroupsSelect(); initLDAPGroupLinks();
initLDAPGroupLinks(); pipelineMinutes();
pipelineMinutes();
});
import '~/pages/admin/groups/new/index'; import '~/pages/admin/groups/new/index';
import initLDAPGroupLinks from 'ee/groups/ldap_group_links'; import initLDAPGroupLinks from 'ee/groups/ldap_group_links';
document.addEventListener('DOMContentLoaded', initLDAPGroupLinks); initLDAPGroupLinks();
import initSettingsPanels from '~/settings_panels'; import initSettingsPanels from '~/settings_panels';
document.addEventListener('DOMContentLoaded', () => { initSettingsPanels();
initSettingsPanels();
});
import { pipelineMinutes } from '../pipeline_minutes'; import { pipelineMinutes } from '../pipeline_minutes';
document.addEventListener('DOMContentLoaded', () => { pipelineMinutes();
pipelineMinutes();
});
import initForm from '../../shared/init_form'; import initForm from '../../shared/init_form';
document.addEventListener('DOMContentLoaded', initForm); initForm();
import initRequirementsApp from 'ee/requirements/requirements_bundle'; import initRequirementsApp from 'ee/requirements/requirements_bundle';
document.addEventListener('DOMContentLoaded', () => { initRequirementsApp();
initRequirementsApp();
});
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