Closed
Description
(i) This ticket is created automatically based on a verified GitHub issue.
{panel}
If you are starting to work on this Jira ticket, please notify issue reporter and authors of related community pull requests (if any) that you are going to work on this issue:
- Assign #28823 issue to yourself on Magento GitHub
- Add comment "Internal Magento team is working on this issue right now."
{panel}
This issue is automatically created based on existing pull request: Don't load datepicker module until it is actually needed #27860: Don't load datepicker module until it is actually needed-------###### Description (*)
Magento 2.4-develop
This PR is a part of my effort to improve Magento 2 frontend performance.
Goal here is to eliminate unnecessary loading of datepicker UI component, which is only needed when the shop has date of birth field enabled.
Expected behavior (*)
- Enable date of birth field for customers in admin.
- Verify that
jquery/ui-modules/datepicker.js
is not loaded on pages that do not use datepicker (e.g. homepage, category, product etc.). - Verify that above file is loaded and datepicker works properly on pages that use it (e.g. customer registration form page).
Benefits
Performance improvement
Tested on Magento 2.4-develop with Luma and sample data.
- 205 -> 202 JS requests (-1.46%).
- 698.40kB -> 652.57kB JS transferred (-6.56%).
Additional information
Contribution checklist (*)
- < ] Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- All new or changed code is covered with unit/integration tests (if applicable)
- [ > All automated tests passed successfully (all builds are green)
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentMay be fixed according to the position in the backlog.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branchMajor restrictions or short-term circumventions are required until a fix is available.Has been reviewed and prioritized during Triage with Product Managers
Type
Projects
Status
Done