{"ScriptPreparationCode":" function onceIdle1(func = Boolean, group = func) {\r\n window.cancelIdleCallback(group.idleCallback);\r\n group.idleCallback = window.requestIdleCallback(func);\r\n }\r\n\r\n function onceIdle2(func = Boolean, group = func) {\r\n if (!group.idleCallback) {\r\n group.idleCallback = window.requestIdleCallback(() =\u003E {\r\n group.idleCallback = false;\r\n func();\r\n });\r\n }\r\n }\r\n\r\n function noop() {\r\n console.log(new Date().toISOString());\r\n }","TestCases":[{"Name":"CancelCallback","Code":"onceIdle1(noop)","IsDeferred":false},{"Name":"IfNotCallback","Code":"onceIdle2(noop)","IsDeferred":false}]}