Forum Discussion
Phoebus
Mar 24, 2020Copper Contributor
Under what circumstances does the browser generate the FireIdleCallback events
When I visit http://www.baidu.com (like bing) , the browser(MSEdge for chromium) will generate FireIdleCallback event, see log: [System] Chrome Event: FireIdleCallback (Complete) FireIdleCallback, C...
- Mar 24, 2020
Well as implemented in WebIDL's 'requestIdleCallback' polls a function in the queue to be called.
This leads to 'Fire Idle Callback'; firing (Executing) it later, this one is internal to the browser.
Phoebus
Mar 24, 2020Copper Contributor
HotCakeX thanks for your reply, but I think there are difference between fireidlecallback and requestidlecallback.
Thraetaona
Mar 24, 2020Iron Contributor
Well as implemented in WebIDL's 'requestIdleCallback' polls a function in the queue to be called.
This leads to 'Fire Idle Callback'; firing (Executing) it later, this one is internal to the browser.