Importing JS module with await on top level casuses browsers on iOS to fail to run windows.onload().
This was noted by me while using nacl-fast-es case it use top level await to set random function.
It has also been noted in this stackoverflow post
top-level await in a module prevents `onload` from firing
For the moment I will skip using windows.onload() and hope that GUI element has been loaded correct.
onLoad | initCall | |
---|---|---|
Await module init call | run (*) | run |
Sleep module init call (await import()) | run | run |
Sleep module init call | run(**) | run |
Syncron module init call | run | run |
* Fail on iOS browsers
** Fail on all browsers