You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because elementReady only uses requestAnimationFrame, so nothing is run until the user switches to the tab. This means that every time you switch to the tab, there's a FOUC or delay because RG will run at that point.
Activity
fregante commentedon May 3, 2021
Also I'd replace
elementReady('body')with a custom awaiter like:This is because
elementReadyonly usesrequestAnimationFrame, so nothing is run until the user switches to the tab. This means that every time you switch to the tab, there's a FOUC or delay because RG will run at that point.