Exclude analytics_core from JS preprocessing to reduce PHP memory footprint when using JavaScript aggregation

Created on 27 November 2023, 7 months ago
Updated 16 January 2024, 5 months ago

Problem/Motivation

Yoast SEO includes an analytics library with a large file size. This library has a large footprint on PHP memory usage. When using JavaScript aggregation, this may cause PHP to run out of memory for sites running on a moderate memory limit such as 128MB. This is especially true for sites running on Drupal 10 with on-the-fly JavaScript minification enabled: https://www.drupal.org/node/3305725 β†’

Proposed resolution

Exclude the Yoast SEO analytics_core library from JavaScript preprocessing to reduce PHP memory footprint when using JavaScript aggregation

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ“Œ Task
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands idebr

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

Comments & Activities

Production build 0.69.0 2024