aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-01-11 14:21:47 -0600
committerzsloan2021-01-11 14:21:47 -0600
commit2016470a13945e6bb833d28583de9e0877fe91eb (patch)
tree6bae10f082df740dae9c36ddf87cecdad0b367cd /wqflask
parentb3fa4b472ed12f898a02389d2055695c47455fd9 (diff)
downloadgenenetwork2-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.html2
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);