Drupal 10.1 and this module

Created on 17 October 2023, 8 months ago
Updated 1 February 2024, 5 months ago

Taking into account Drupal 10.1 is now doing JS minification, I am wondering whether this modules is still relevant to use on a D10.1 installation.

Does it still add anything useful or did Drupal 10.1 render this module obsolete?

Maybe this should be clarified on the module project page as well.

πŸ’¬ Support request
Status

Fixed

Version

3.0

Component

Documentation

Created by

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

Comments & Activities

  • Issue created by @sd123
  • πŸ‡ΊπŸ‡¦Ukraine Seonic

    In my opinion, this module still actual. Drupal js minification is slow at this moment, because of unminified core js files and peast(slow but more reliable in comparison to JShrink), and each aggregation minify core's files. And there is no option to disable it, except JSOptimizer override.
    Each js aggregated group takes around 1s (in my docker container, JShrink minifies in 0.2s (test with replaced peast to JShrink in JSOptimizer)), I understand that now js files are generated in a separate request and don't reduce a page response time, but sometimes it is visible how page jumps in admin theme before js ready (it's easy to see in views edit page before js cache ready, without jsOptimizer it quick and practically invisible). This module allows to reduce aggregation time removing compression on the fly which reduce visual distortion on cold start.

  • πŸ‡¨πŸ‡¦Canada slydevil Halifax

    Yeah, I'll update the project page with some additional details.

  • Status changed to Fixed 5 months ago
  • πŸ‡¨πŸ‡¦Canada slydevil Halifax

    Updated the project page.

  • Status changed to Fixed 5 months ago
  • πŸ‡¨πŸ‡¦Canada slydevil Halifax
  • πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

    Thanks @Seonic. That was a good explanation.

    I was wondering if there is a recipe that goes along with it.
    For example can I use minifyjs to pre-aggregate all core js? Would that speed up my site?

    Minifyjs added a minify flag to js files: πŸ› Drupal 10.1 JSOptimizer Fixed

    Here are some core issues that this might solve:
    πŸ› Performance problem with the on-the-fly minification and xdebug Active
    #3308122: Pre-minify core JavaScript β†’

Production build 0.69.0 2024