Closed (fixed)
Project:
Single-page applications (SPA)
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
14 Nov 2025 at 07:08 UTC
Updated:
21 Apr 2026 at 15:30 UTC
Jump to comment: Most recent
We need a new “header” option in the SPA library plugin configuration that allows external JavaScript libraries to be optionally loaded in the document header instead of the footer. This provides more flexibility in cases where scripts need to be loaded early.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
valegole commentedWe also need the ability to attach an external script with any number of custom attributes. Currently, the implementation only supports a predefined or limited set of attributes. For our use case, external scripts must be configurable with arbitrary attributes (e.g., data-*, custom flags, or integration-specific parameters).
Comment #4
valegole commentedComment #5
valegole commentedComment #6
harlor commentedWe should move these new options to the base class.
Comment #7
harlor commentedComment #8
hydra commentedComment #9
harlor commented