-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
jquery.validate.js does not get minified correctly #36013
Comments
Hi @git-seb. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 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, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento give me 2.4-develop instance |
Hi @engcom-Hotel. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Hotel, here is your Magento Instance: https://3799947449e4bad23f91dcee07ec26fe.instances.magento-community.engineering |
@magento give me 2.4-develop instance |
Hi @engcom-Hotel. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Hotel, here is your Magento Instance: https://3799947449e4bad23f91dcee07ec26fe.instances.magento-community.engineering |
@magento give me 2.4.5 instance |
Hi @engcom-Hotel. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Hotel, here is your Magento Instance: https://22dcddfc581ace05c5c80fae5246308c.instances.magento-community.engineering |
Hi @git-seb We have tried to reproduce this issue We have followed below steps 2.After we run the frontend url in Google PageSpeed
Please let us know if we are missing any steps here. Thanks |
Hi @engcom-Lima, as you can see on your last screenshot, Google says jquery.validate.min.js can be optimized even though it is stated as passed. If you check that file you can see it is not minified correctly (see link https://22dcddfc581ace05c5c80fae5246308c.instances.magento-community.engineering/static/version1661761332/frontend/Magento/luma/en_US/jquery/jquery.validate.min.js from your instance). Thanks. |
@magento give me 2.4-develop instance |
Hi @engcom-Hotel. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Hotel, here is your Magento Instance: https://3799947449e4bad23f91dcee07ec26fe.instances.magento-community.engineering |
@magento give me 2.4.5 instance |
Hi @engcom-Hotel. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Hotel, here is your Magento Instance: https://22dcddfc581ace05c5c80fae5246308c.instances.magento-community.engineering |
@magento give me 2.4.4 instance |
Hi @engcom-Hotel. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Hotel, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later. |
✔️ Issue confirmed Issue got reproduced in 2.4-develop && 2.4.5 branch. Description: Prerequisite:
Steps to Reproduce:
Expected result: Checked both M2 versions Hence,confirming the issue. Thanks |
✅ Confirmed by @engcom-Lima. Thank you for verifying the issue. |
@magento I am working on this |
Any update on this issue? |
I found the root of the error, but it is not in the m2 files, but in third-party files/libs ( jquery libs or in the minifactor itself). Maybe I could deliver some plugin later ( There is a certain regular expression in the jquery.validate file that stops execution when approached by the minifier |
tedious/JShrink#110 |
Simply solve it by updating JShink:
|
@minhluan259 |
@minhluan259 Thanks for your input. That means fixing this issue is by updating the JShrink plugin from 1.4 to 1.7. I do think Magento devs have not done that yet because in version 1.5 of JShrink PHP 7.0 support dropped. Starting from Magento 2.4.6 (june 2023), the devs dropped support for PHP 7.4 but left JShrink unchanged. That is just assuming tho. Side note for others, when doing this command, the following also installed/updated (at least on my 2.4.6-p3 environment):
Tomorrow I will confirm if this fixes it or not as I yet have to deploy this on the production I am running. |
The following error was showing up when compliming: I've reverted version 1.7 back to 1.4 and did |
@git-seb If you are using Magento 2.4.6-p3, just run |
Just wanted to give a heads up on this thread. This is not yet fixed. Even after updating to Jshrink v1.7. I can confirm on multiple production environments. |
Hi, |
Hello, We are facing the same issue. Any progress about a merge about it? |
As the issue is quite old, we rechecked this issue and found that the issue is relevant. Hence we are reconfirming the issue. Thanks |
❌ Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-6594 |
Preconditions and environment
Did a pagespeed test and shows jquery.validate.min.js should be optimized. (I have JS minify turned on) Checking the actual file jquery.validate.min.js it is indeed incorrectly minified.
How it should be:
Don't have deep knowledge of Magento but this is all the info I can provide.
Steps to reproduce
Expected result
Minify jquery.validate.min.js correctly
Actual result
Minification of jquery.validate.min.js is incorrect
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: