only require gtag.ajax library if it is needed

Created on 14 February 2024, 7 months ago
Updated 23 April 2024, 5 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

Comments & Activities

Production build 0.71.5 2024