Closed
Description
This issue is automatically created based on existing pull request: #32499: Fix missing video when advanced js bundling used
Description (*)
This PR fixes issue when a video is missing in the product gallery when advanced JS bundling is enabled and used.
This happened because the event gallery:loaded
was already triggered before this code was executed.
In order to fix the issue I looked how with this event we working in different places, so I did same in this piece of code as well.
Related Pull Requests
Fixed Issues (if relevant)
- Fixes magento/magento2#<issue_number>
Manual testing scenarios (*)
- Configure advanced JS bundling, I used this one https://github.com/magesuite/magepack
- Go to a product page that contains youtube or vimeo video
- See gallery, try to find the video
Actual result: (before this PR)
❌ No video appeared, just image shown
Expected result: (after this PR)
✔ Video should appear in gallery
Questions or comments
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
Type
Projects
Status
Done