css_defer setting broken with Drupal 10.1

Created on 17 July 2023, over 1 year ago
Updated 20 October 2023, about 1 year ago

Problem/Motivation

The regexp in DeferCss::defer() does not work anymore with Drupal 10.1 because the format of asset URLs changed.

Steps to reproduce

  1. Enable Deferred CSS Execution and Inline javascript loader library in advagg_mod.
  2. Enable CSS preprocessing in core.
  3. <link> tags are not replace by the regexp.

Proposed resolution

The regexp should be tweaked to work with the new URL format.

(Note that this regexp also causes 🐛 Content is not well-formed on 404 page Needs review so it might be better to switch to real DOM parsing.)

🐛 Bug report
Status

Needs review

Version

6.0

Component

Code

Created by

🇫🇷France prudloff Lille

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

Comments & Activities

Production build 0.71.5 2024