Commit 703d8dd9 authored by Jannik Lehmann's avatar Jannik Lehmann

remove unnecessary DOM Content Loaded Event Listener

parent 1d60354a
......@@ -25,8 +25,7 @@ initPageShortcuts();
initCollapseSidebarOnWindowResize();
initSelect2Dropdowns();
document.addEventListener('DOMContentLoaded', () => {
window.requestIdleCallback(
window.requestIdleCallback(
() => {
// Check if we have to Load GFM Input
const $gfmInputs = $('.js-gfm-input:not(.js-gfm-input-initialized)');
......@@ -39,5 +38,4 @@ document.addEventListener('DOMContentLoaded', () => {
}
},
{ timeout: 500 },
);
});
);
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