Inline JS in the head

Created on 3 April 2025, 2 days ago

Problem/Motivation

We want to inject a Javascript snippet into the head tag not attach a JS file.

Proposed resolution

Add a new inline option to the JS asset injector entity and modify _asset_injector_add_element_libraries() to add an inline script tag to the head if the inline option is true instead of attaching the library.

Feature request
Status

Active

Version

2.21

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024