How can I insert a delay after window.open is called so a child page has time to fully load before parent page runs window.postMessage? I know there is something called 'await' but I assume this is for JS being used as backend not frontend? What is the best approach for this timing issue?**
Asked
Active
Viewed 6 times
0
2StepsFromHell
- 23
- 4
-
`await` can be used both on the frontend and backend just fine, but listening for the new window's event is better – CertainPerformance Jun 02 '22 at 01:37