Problem
The package registers its bootstrap only through window.addEventListener('load', __init).
If the script is loaded after the window load event has already fired, initialization never runs.
Impact
- collection actions do not work in late-loaded bundles
- dynamic admin screens can fail silently
- integration depends on script timing instead of component state
Expected behavior
Initialization should also handle the case where the document is already loaded when the script is evaluated.
Problem
The package registers its bootstrap only through
window.addEventListener('load', __init).If the script is loaded after the window load event has already fired, initialization never runs.
Impact
Expected behavior
Initialization should also handle the case where the document is already loaded when the script is evaluated.