Minified JS libraries should be declared as such to avoid unnecessary processing by Drupal

Created on 17 October 2023, about 1 year ago

Problem/Motivation

Library definitions that include CSS or JS assets can indicate if those assets are already minified or not. Prior to Drupal 10.1, I don't think this had any benefit for JS assets, since Drupal didn't perform any of its own minification on JS assets. But Drupal 10.1 now performs JS minification β†’ . There are JS files in this module that are already minified but not declared as such.

Steps to reproduce

Proposed resolution

Declare the minified JS files as minified, so Drupal doesn't process them any further for no reason.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Closed: works as designed

Version

2.1

Component

Bugs

Created by

πŸ‡ΊπŸ‡ΈUnited States bkosborne New Jersey, USA

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

Comments & Activities

  • Issue created by @bkosborne
  • Status changed to Closed: works as designed about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States bkosborne New Jersey, USA

    Ah, actually nevermind. The library is already declared as "preprocess: false", so I think it's excluded from the whole minification process anyway.

Production build 0.71.5 2024