aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/js/index.js2
-rw-r--r--static/js/timeago.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/index.js b/assets/js/index.js
index 1e267b9..fc1f6c3 100644
--- a/assets/js/index.js
+++ b/assets/js/index.js
@@ -587,7 +587,7 @@
}
};
const substitution = setInterval(date, 4);
- self.addEventListener("load", function() {
+ self.addEventListener("DOMContentLoaded", function() {
setTimeout(function() {
clearInterval(substitution);
setInterval(date, 1000);
diff --git a/static/js/timeago.ts b/static/js/timeago.ts
index f7567ed..81ae579 100644
--- a/static/js/timeago.ts
+++ b/static/js/timeago.ts
@@ -47,7 +47,7 @@
const substitution = setInterval(date, 4);
- self.addEventListener("load", function () {
+ self.addEventListener("DOMContentLoaded", function () {
setTimeout(function () {
clearInterval(substitution);
setInterval(date, 1000);