Skip to content

Combine DomAccess.addScript and loadScript into a unified API #8152

@tobiu

Description

@tobiu

DomAccess.addScript() and DomAccess.loadScript() currently provide similar functionality but with different implementations and use cases.

addScript is exposed as a remote method, while loadScript is a local helper used by addons.

We should merge these into a single, robust API that:

  1. Supports both remote and local usage.
  2. Handles both adding the tag and tracking loading state (Promise-based).
  3. Standardizes the configuration object.

This is a technical debt cleanup task.

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