fix(core): 🐛 use mw.requestIdleCallback for polyfill

Safari does not support rIC yet and MW has a polyfill for that.
This commit is contained in:
alistair3149 2024-11-17 01:12:02 -05:00
parent a5b536d821
commit daef66f141
No known key found for this signature in database

View file

@ -94,8 +94,7 @@ function main( window ) {
} }
// Defer non-essential tasks // Defer non-essential tasks
// eslint-disable-next-line compat/compat mw.requestIdleCallback( deferredTasks, { timeout: 3000 } );
requestIdleCallback( deferredTasks, { timeout: 3000 } );
} }
if ( document.readyState === 'interactive' || document.readyState === 'complete' ) { if ( document.readyState === 'interactive' || document.readyState === 'complete' ) {