const isIE11 = ! ! window . MSInputMethodContext && ! ! document . documentMode ; export default function awaitNextFrame ( ) { return new Promise ( ( resolve ) => setTimeout ( resolve , 1000 / ( isIE11 ? 5 : 30 ) ) ) ; }