Aggregation is not grouping correctly

Created on 9 July 2019, almost 5 years ago
Updated 20 October 2023, 8 months ago

Problem/Motivation

Regardless of whether we have a library containing a JS file in a custom module or within our theme, whenever we add attributes: { defer: true } it is still being grouped with the other JS files where the defer attribute is not set.

Proposed/Resolution

  1. Group all JS files that have defer: true together
  2. Group all JS files that have async: true together
  3. Group all JS files that do not have both set (async and defer) together

Steps to reproduce

Enable advagg_bundler,advagg_css_minify,advagg_js_minify,advagg_modadvagg modules

Under configuration (/admin/config/development/performance/advagg):

  1. Enabled Advanced Aggreation = true
  2. Use DNS Prefetch for external CSS/JS = true
  3. keep all other settings as defaults

Under Bundler (/admin/config/development/performance/advagg/bundler)

  1. Bundler is active = true
  2. css bundling option: target number = 4 & grouping logic = file size
  3. JS bundling option: target number = 4 & grouping logic = file size

CSS Minifications (/admin/config/development/performance/advagg/css-minify)

  1. Minification = Core

JS Minifications (/admin/config/development/performance/advagg/js-minify)

  1. JSqueeze = enabled

Modifications (/admin/config/development/performance/advagg/mod)

  1. JS: Enabled preprocess on all JS = True, Move all external scripts to the top of the execution order = True, Move all browser conditional JavaScript to the bottom of the group = true
  2. CSS: Enable preprocess on all CSS, Move all external CSS to the top of the execution order = true, Move all browser conditional CSS to the bottom of the group = true
πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024