mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-27 15:50:34 +00:00
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:
parent
a5b536d821
commit
daef66f141
|
@ -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' ) {
|
||||
|
|
Loading…
Reference in a new issue