only require gtag.ajax library if it is needed

Created on 14 February 2024, 10 months ago
Updated 12 September 2024, 3 months ago

Problem/Motivation

As soon as this module is enabled all pages require jQuery which is because:

google_tag/gtag.ajax requires core/drupal.ajax requires core/jquery.

This requirement is only necessary when when there a specific page actually contains asynchronous elements.

Proposed resolution

Rather then attatching gtag.ajax every time in hook_page_attachments it should be attached only if some other module requires core/drupal.ajax.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany loominade

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024