-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider moving from tedivm/jshrink to garfix/js-minify #34309
Comments
Hi @hostep. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hmm, I just gave this a try by compiling the Magento/blank & Magento/luma themes, only in the en_US locale, and:
So I'm not sure if we should proceed with swapping out these two libraries... |
In case anybody wants to try this out, the only changes I did make were these ones and I executed:
Executed the last 2 commands with the original library installed and afterwards with the new library and looked at the execution times and compared the output a bit with a diff tool. |
Ow okay, I see, I have But when I enable it again, See the output, both times with
So this indeed sounds like a good library out of the sudden 👍 |
Final test results after which I'll call it a day:
So with Note that all my results are each time pretty different, sometimes 2 to 4 seconds difference, which means my testing was not done properly and the test runs were only executed once instead of many times and averaged out. Also I'm on battery currently and have some other programs running in the background, all of these things probably have a certain amount of effect on the results... |
Side note, this also fixed an issue I had with the default minifier, some forms of IEFs like: A non-destructive way of doing this is requiring the module with composer and then using |
Description (*)
Consider swapping the
tedivm/jshrink
package withgarfix/js-minify
for increased performance when minifying JSExpected behavior (*)
Faster minifying of javascript code during static content deployment
Benefits
Faster deploys
Additional information
Based on the discussion in tedious/JShrink#105, it might be worth testing this out
I haven't tested it out myself but it sounds very promissing.
The text was updated successfully, but these errors were encountered: