From f5c4a44831ebb6d40aa75060c400b9180f32f127 Mon Sep 17 00:00:00 2001 From: hackademix Date: Mon, 28 Jan 2019 22:40:36 +0100 Subject: Fixed fastclick.js loaded too late sometimes. --- html/mobile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/mobile.js b/html/mobile.js index f824046..be5d271 100644 --- a/html/mobile.js +++ b/html/mobile.js @@ -4,5 +4,5 @@ if (isMobile) { let s = document.createElement("script"); s.src = "/html/fastclick.js"; document.head.appendChild(s); - window.addEventListener("DOMContentLoaded", e => FastClick.attach(document.body)); + window.addEventListener("load", e => FastClick.attach(document.body)); } -- cgit v1.2.3