From 9c7081d94a149ed22801e7b7df8ccd2cfbf81225 Mon Sep 17 00:00:00 2001 From: Genitana <24569873+Genitana@users.noreply.github.com> Date: Thu, 12 Aug 2021 12:26:49 +0800 Subject: Update index.html (#2030) make 'timeout' More clear --- files/zh-cn/web/api/window/requestidlecallback/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/zh-cn/web') diff --git a/files/zh-cn/web/api/window/requestidlecallback/index.html b/files/zh-cn/web/api/window/requestidlecallback/index.html index 0632e3a3ce..667133cf18 100644 --- a/files/zh-cn/web/api/window/requestidlecallback/index.html +++ b/files/zh-cn/web/api/window/requestidlecallback/index.html @@ -35,7 +35,7 @@ translation_of: Web/API/Window/requestIdleCallback
options
{{optional_inline}}timeout
:如果指定了timeout并具有一个正值,并且尚未通过超时毫秒数调用回调,那么回调会在下一次空闲时期被强制执行,尽管这样很可能会对性能造成负面影响。timeout
: 如果指定了timeout,并且有一个正值,而回调在timeout毫秒过后还没有被调用,那么回调任务将放入事件循环中排队,即使这样做有可能对性能产生负面影响。