-
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
Trigger page load listeners when no longer loading #23313
Trigger page load listeners when no longer loading #23313
Conversation
* Switch from waiting until complete which could lead to severe rendering delays
Hi @johnhughes1984. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @ihor-sviziev, thank you for the review.
|
@johnhughes1984 thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
Not sure if it’s possible to cover with some js tests, but would be really great |
@magento give me test instance |
Hi @DrewML. Thank you for your request. I'm working on Magento instance for you |
Hi @DrewML, here is your new Magento instance. |
I added
Thanks @johnhughes1984! |
✔️ QA passed |
Hi @ihor-sviziev. I think test coverage in this case not applicable. In general, we can cover the functionality of domReady by tests, but it's 3rd party library and it doesn't show real broken cases, we can check it just by functional tests that covered direct part of the functionality |
✔️ QA Passed |
@magento-engcom-team Anything pending before we can merge this? |
@magento run all tests |
The PR is currently in the delivery queue. Please be patient. |
Please fix failed CE, EE, B2B FAT |
@magento run all tests |
@engcom-Golf @engcom-Foxtrot , |
Hi @johnhughes1984, thank you for your contribution! |
Description (*)
Trigger JavaScript page load listeners to fire when document is no longer 'loading' rather than waiting until it is marked as 'complete' as this can lead to severe delays in rendering JavaScript content.
Fixed Issues (if relevant)
Manual testing scenarios (*)
<img src="https://httpstat.us/404?sleep=10000" />
(I added this toMagento_Theme::html/absolute_footer.phtml
)sleep
value of the asset, however private / JavaScript content should render before this finishes (I used theDefault welcome msg!
text in the header to verify this)Questions or comments
N/A
Contribution checklist (*)