AddJsCommand

Last updated on
13 September 2025

AddJsCommand is not needed in an HTMX implementation.  Assets included in the response that are not already present are merged into the target page.

If you are building or maintaining a route for the request, see Adding assets (CSS, JS) to a Drupal module via *.libraries.yml for more information about returning JavaScript.

Help improve this page

Page status: No known problems

You can: