I found what In your plugin DOMContentLoaded event not fired
You need use document.readyState for check this
Example
if(document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded',afterDOMLoaded);
} else {
afterDOMLoaded();
}
function afterDOMLoaded(){
//Everything that needs to happen after the DOM has initially loaded.
}
I found what In your plugin
DOMContentLoaded
event not fired You need usedocument.readyState
for check this Example