- 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
10 months ago 5:48pm 15 January 2024 - Status changed to Fixed
10 months ago 5:48pm 15 January 2024 - πΊπΈ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 β