forked from instructure/canvas-lms
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hide content until scripts are loaded
Because RequireJS loads scripts asynchronously the page renders but the JS hasn't been evaluated. In this commit we hide all <a> and <button> tags until all resources are loaded. Previously the script tags blocked the page from rendering while they loaded and executed. When we have a single top-level require we can remove this logic from the layout, and do it there without all the polling fanfare. Change-Id: I13771caf588508bacc6a70e4609c4af03bf522cd Reviewed-on: https://gerrit.instructure.com/9191 Tested-by: Hudson <hudson@instructure.com> Reviewed-by: Ryan Florence <ryanf@instructure.com>
- Loading branch information
Showing
2 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters