From daef66f141a1cc8d6c4ba538cd1e26c69defcd30 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Sun, 17 Nov 2024 01:12:02 -0500 Subject: [PATCH] =?UTF-8?q?fix(core):=20=F0=9F=90=9B=20use=20mw.requestIdl?= =?UTF-8?q?eCallback=20for=20polyfill?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Safari does not support rIC yet and MW has a polyfill for that. --- resources/skins.citizen.scripts/skin.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/skins.citizen.scripts/skin.js b/resources/skins.citizen.scripts/skin.js index 1e69b9a16..6f23483b2 100644 --- a/resources/skins.citizen.scripts/skin.js +++ b/resources/skins.citizen.scripts/skin.js @@ -94,8 +94,7 @@ function main( window ) { } // Defer non-essential tasks - // eslint-disable-next-line compat/compat - requestIdleCallback( deferredTasks, { timeout: 3000 } ); + mw.requestIdleCallback( deferredTasks, { timeout: 3000 } ); } if ( document.readyState === 'interactive' || document.readyState === 'complete' ) {