diff options
author | hackademix <giorgio@maone.net> | 2019-01-28 22:40:36 +0100 |
---|---|---|
committer | hackademix <giorgio@maone.net> | 2019-01-28 22:40:36 +0100 |
commit | f5c4a44831ebb6d40aa75060c400b9180f32f127 (patch) | |
tree | 41402fc98f2c02fcc6ffdf9442da8fa3555b165c /html | |
parent | 1f705c122dfe7b9ec0cd956c5188b907e6e8e4b8 (diff) |
Fixed fastclick.js loaded too late sometimes.
Diffstat (limited to 'html')
-rw-r--r-- | html/mobile.js | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |