Update js_usage.markdown to use onRuntimeInitialized
authorPhil Ruffwind <rf@rufflewind.com>
Sat, 9 Apr 2022 05:48:03 +0000 (22:48 -0700)
committerPhil Ruffwind <rf@rufflewind.com>
Mon, 23 May 2022 03:53:35 +0000 (20:53 -0700)
commitd1ccb7e47f5bc6d569e76b773f019eb07ab42065
tree52addfdf1607bc2655376a1a2e6f60807659f17a
parentea1c970190b949d677d72e17b6c8f73cdcc11c5a
Update js_usage.markdown to use onRuntimeInitialized

The Emscripten library is not guaranteed to be fully loaded during the
script element's onload event. Module.onRuntimeInitialized seems to be
more reliable.
doc/js_tutorials/js_setup/js_usage/js_usage.markdown