From f763e731bbf74beaf406a19976fc29346aff9fdd Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Tue, 23 Jul 2024 16:11:52 -0700 Subject: [PATCH] Remove now-discouraged use of isInputPending See https://web.dev/articles/optimize-long-tasks#isinputpending --- packages/interactivity/src/init.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/interactivity/src/init.ts b/packages/interactivity/src/init.ts index 722876a1695d6c..43450539cb1210 100644 --- a/packages/interactivity/src/init.ts +++ b/packages/interactivity/src/init.ts @@ -46,9 +46,6 @@ export const init = async () => { } if ( ! hydratedIslands.has( node ) ) { - while ( window.navigator.scheduling?.isInputPending() ) { - await splitTask(); - } const fragment = getRegionRootFragment( node ); const vdom = toVdom( node ); await splitTask();