Commit ab92fbb8 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
......@@ -18,8 +18,6 @@ function initMembers(el) {
});
}
document.addEventListener('DOMContentLoaded', () => {
const el = document.querySelector('.js-saml-members');
initMembers(el);
initSAML();
});
const el = document.querySelector('.js-saml-members');
initMembers(el);
initSAML();
import initDastScannerProfileForm from 'ee/security_configuration/dast_scanner_profiles/dast_scanner_profiles_bundle';
document.addEventListener('DOMContentLoaded', initDastScannerProfileForm);
initDastScannerProfileForm();
import initDastScannerProfileForm from 'ee/security_configuration/dast_scanner_profiles/dast_scanner_profiles_bundle';
document.addEventListener('DOMContentLoaded', initDastScannerProfileForm);
initDastScannerProfileForm();
import initDastSiteProfileForm from 'ee/security_configuration/dast_site_profiles_form';
document.addEventListener('DOMContentLoaded', initDastSiteProfileForm);
initDastSiteProfileForm();
import initDastSiteProfileForm from 'ee/security_configuration/dast_site_profiles_form';
document.addEventListener('DOMContentLoaded', initDastSiteProfileForm);
initDastSiteProfileForm();
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