Commit a839f0c8 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'defer-optimization-for-security-dashboard-show' into 'master'

Remove DOMContentLoaded EventListener

See merge request gitlab-org/gitlab!47515
parents 603ec979 a6fe0099
import initSecurityCharts from 'ee/security_dashboard/security_charts_init'; import initSecurityCharts from 'ee/security_dashboard/security_charts_init';
import { DASHBOARD_TYPES } from 'ee/security_dashboard/store/constants'; import { DASHBOARD_TYPES } from 'ee/security_dashboard/store/constants';
document.addEventListener('DOMContentLoaded', () => { initSecurityCharts(document.getElementById('js-security'), DASHBOARD_TYPES.INSTANCE);
initSecurityCharts(document.getElementById('js-security'), DASHBOARD_TYPES.INSTANCE);
});
---
title: Removed DOMContentLoaded Eventlistener from ee/app/assets/javascripts/pages/security/dashboard/show/index.js
merge_request: 47515
author:
type: changed
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