MSEdgeExplainers
MSEdgeExplainers copied to clipboard
"FocusGroup polyfill" initialize at the right time
There are 3 readyStates in this order:
- loading | | -> DOMContentLoaded fires
- interactive
|
| < - script executes,
!complete ? addEventListener(...) : OneTimeInit()// addEventListener wins | - complete
If the script is executed between interactive and complete, OneTimeInit does not run right now and the "DOMContentLoaded" listener will never fire.