asynchronous running js script #523
-
Hi. I am trying to display epub and run some js code that changes the color of words background. But the problem is that page renders after running script. Is that possible to change it. I've tried to run same html doc in browser, works fine, page renders first, then run script and modifies page |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Have you tried wrapping your code in a |
Beta Was this translation helpful? Give feedback.
-
I've just tried onload, it doesnt work at all, it even doesnt calls. Then i tried DOMContentLoaded. It works, but just as default ( |
Beta Was this translation helpful? Give feedback.
-
Is there any way to do it? |
Beta Was this translation helpful? Give feedback.
Is there any way to do it?