Skip to content

iAPI Router: Only load modules of interactive blocks on client-side navigation #70873

@DAreRodz

Description

@DAreRodz

What problem does this address?

The current iAPI Router implementation simply looks for all JavaScript modules in the HTML and imports them. However, some of them may not be necessary, potentially executing code that is neither related to interactive blocks nor compatible with the Interactivity API.

What is your proposed solution?

We could implement a mechanism that tells the iAPI router which JavaScript modules to consider and which to ignore. Some sort of "allowlist" would be fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions