Wait for HTML to update

17 views
Skip to first unread message

supsm17

unread,
Nov 21, 2021, 1:01:10 PM11/21/21
to emscripten-discuss
Hi there,
I have a program where I am printing to the HTML of a website, however it doesn't update until the main function exits. I found that adding emscripten_sleep() after the HTML is updated works, however I'm not sure how much to sleep for. Lower values don't update until the next line is printed, and higher values cause too much delay. Is there some way I can wait until it is finished updating? Or is there some other way I can update the HTML?
Any help is appreciated.

Thanks,
supsm
Reply all
Reply to author
Forward
0 new messages