Skip to content
Snippets Groups Projects
Commit d1906d22 authored by Ryan Florence's avatar Ryan Florence Committed by Zach Wily
Browse files

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: default avatarHudson <hudson@instructure.com>
Reviewed-by: default avatarRyan Florence <ryanf@instructure.com>
parent 173b6ee5
Branches
Tags release/2018-07-14.04
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment