SOLVED

Under what circumstances does the browser generate the FireIdleCallback events

%3CLINGO-SUB%20id%3D%22lingo-sub-1248914%22%20slang%3D%22en-US%22%3EUnder%20what%20circumstances%20does%20the%20browser%20generate%20the%20FireIdleCallback%20events%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1248914%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20I%20visit%20%3CA%20href%3D%22http%3A%2F%2Fwww.baidu.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ewww.baidu.com%3C%2FA%3E%20(like%20bing)%20%2C%20the%20browser(MSEdge%20for%20chromium)%20will%20generate%26nbsp%3BFireIdleCallback%20event%2C%20see%20log%3A%3C%2FP%3E%3CP%3E%5BSystem%5D%20Chrome%20Event%3A%20FireIdleCallback%20(Complete)%20FireIdleCallback%2C%20Complete%2C%20data%2C%20%2C%20%2C%3CBR%20%2F%3E%5BSystem%5D%20Chrome%20Event%3A%20FireIdleCallback%20(Complete%20End)%20FireIdleCallback%2C%20Complete%20End%2C%20%2C%20%2C%20%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%2C%20If%20I%20use%20local%20http%20server%2C%20FireIdleCallback%26nbsp%3Bevents%20do%20not%20occur.%3C%2FP%3E%3CP%3ESo%2C%26nbsp%3B%3CSPAN%3EUnder%20what%20circumstances%20can%20the%20FireIdleCallback%26nbsp%3Bevent%20be%20generated%20%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Eremind%EF%BC%9Avisit%20baidu.com%20or%20local%20server%2C%20MSEdge%20can%20normal%20showing%20content%20page.%3C%2FP%3E%3CP%3Ethanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1248914%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMSEdge%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1249256%22%20slang%3D%22en-US%22%3ERe%3A%20Under%20what%20circumstances%20does%20the%20browser%20generate%20the%20FireIdleCallback%20events%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1249256%22%20slang%3D%22en-US%22%3EYou%20can%20read%20more%20about%20it%20here%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdevelopers.google.com%2Fweb%2Fupdates%2F2015%2F08%2Fusing-requestidlecallback%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdevelopers.google.com%2Fweb%2Fupdates%2F2015%2F08%2Fusing-requestidlecallback%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1249712%22%20slang%3D%22en-US%22%3ERe%3A%20Under%20what%20circumstances%20does%20the%20browser%20generate%20the%20FireIdleCallback%20events%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1249712%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F592294%22%20target%3D%22_blank%22%3E%40Phoebus%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWell%20as%20implemented%20in%20WebIDL's%20'%3CEM%3ErequestIdleCallback%3C%2FEM%3E'%20polls%20a%20function%20in%20the%20queue%20to%20be%20called.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E'%3CEM%3EFire%20Idle%20Callback%3C%2FEM%3E'%20later%20fires%20(%3CEM%3EExecutes%3C%2FEM%3E)%20it%2C%20this%20is%20internal%20to%20the%20browser.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1249577%22%20slang%3D%22en-US%22%3ERe%3A%20Under%20what%20circumstances%20does%20the%20browser%20generate%20the%20FireIdleCallback%20events%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1249577%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F310193%22%20target%3D%22_blank%22%3E%40HotCakeX%3C%2FA%3E%26nbsp%3Bthanks%20for%20your%20reply%2C%20but%20I%20think%20there%20are%20difference%20between%20fireidlecallback%20and%20requestidlecallback.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

When I visit www.baidu.com (like bing) , the browser(MSEdge for chromium) will generate FireIdleCallback event, see log:

[System] Chrome Event: FireIdleCallback (Complete) FireIdleCallback, Complete, data, , ,
[System] Chrome Event: FireIdleCallback (Complete End) FireIdleCallback, Complete End, , , ,

 

but, If I use local http server, FireIdleCallback events do not occur.

So, Under what circumstances can the FireIdleCallback event be generated ?

remind:visit baidu.com or local server, MSEdge can normal showing content page.

thanks.

5 Replies
Highlighted

@HotCakeX thanks for your reply, but I think there are difference between fireidlecallback and requestidlecallback.

Highlighted
Best Response confirmed by Phoebus (New Contributor)
Solution

@Phoebus 

 

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.

 

trace.png

 

Highlighted

@Phoebus so, The ultimate solution is to clean up all of the browser's cached data. after use local server, browser will load new data, it will generate FireIdleCallback event.

Highlighted

@Phoebus Glad to see that you were able to get some help from the community! Let us know if anything else comes up, and welcome to the MS Edge Insiders group.

 

Fawkes (they/them)
Project & Community Manager - Microsoft Edge