Thread
:
window.load event: works in editor but not in viewer
View Single Post
02-15-2021, 10:15 PM
#
7
kovidgoyal
creator of calibre
Posts: 45,385
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
oh yeah i forgot the viewer loads all scripts asynchronously. Well either use the newly added window.load event or have your page specific code set a callback on the window object and your common js code load it on DOMContentloaded event.
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS