Skip to content

Initialize collection listeners when the script loads after window load #10

Description

@javihgil

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions