diff options
author | zsloan | 2021-01-11 14:21:47 -0600 |
---|---|---|
committer | zsloan | 2021-01-11 14:21:47 -0600 |
commit | 2016470a13945e6bb833d28583de9e0877fe91eb (patch) | |
tree | 6bae10f082df740dae9c36ddf87cecdad0b367cd /wqflask | |
parent | b3fa4b472ed12f898a02389d2055695c47455fd9 (diff) | |
download | genenetwork2-2016470a13945e6bb833d28583de9e0877fe91eb.tar.gz |
Fixed error with JS that adds text to footer showing how long it took to render the page
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/templates/base.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/base.html b/wqflask/wqflask/templates/base.html index e368a4be..facebdff 100644 --- a/wqflask/wqflask/templates/base.html +++ b/wqflask/wqflask/templates/base.html @@ -264,7 +264,7 @@ {% endblock %} <script type="text/javascript"> - $(window).load(function() { + document.addEventListener('DOMContentLoaded', function() { let timeToLoad = document.createElement("p"); timeToLoad.innerHTML = "It took your browser " + ((Date.now() - pageLoadStart)/1000) + " second(s) to render this page"; document.querySelector("footer .row .col-xs-6").appendChild(timeToLoad); |