LearnNewsExamplesServices
Frontmatter
id8152
titleCombine DomAccess.addScript and loadScript into a unified API
stateOpen
labels
enhancementno auto closeairefactoringarchitecture
assignees[]
createdAtDec 21, 2025, 12:37 PM
updatedAtMar 28, 2026, 6:55 AM
githubUrlhttps://github.com/neomjs/neo/issues/8152
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]

Combine DomAccess.addScript and loadScript into a unified API

Openenhancementno auto closeairefactoringarchitecture
tobiu
tobiu commented on Dec 21, 2025, 12:37 PM

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.

tobiu added the enhancement label on Dec 21, 2025, 12:37 PM
tobiu added the ai label on Dec 21, 2025, 12:37 PM
tobiu added the refactoring label on Dec 21, 2025, 12:37 PM
tobiu added the architecture label on Dec 21, 2025, 12:37 PM
tobiu cross-referenced by #8149 on Dec 21, 2025, 12:46 PM
tobiu removed the stale label on Mar 28, 2026, 6:55 AM
tobiu added the no auto close label on Mar 28, 2026, 6:55 AM