Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don’t wait for window.load if jQuery is loaded after domready
See ryankshaw/jquery@3a48a84c for the Actual changes If this jQuery code was initialized after the DOMContentLoaded event But before the window.load event, it would wait until the window.load Fallback to run everything that was using $.ready() (aka $(fn)) this change make it so it executes all those callbacks now instead Of waiting for window.load Test plan: * turn streaming on * profile a page * you should notice that jQuery is initialized as part of main.js Sometime after DOMContentLoaded * but you should see all the callbacks run then instead of after the Window.load event Change-Id: Ie75f3475f21ac9e7f7503c91e9c5d5700ff28b11 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/215873 Tested-by: Jenkins QA-Review: Ryan Shaw <[email protected]> Product-Review: Ryan Shaw <[email protected]> Reviewed-by: Clay Diffrient <[email protected]>
- Loading branch information