mirror of
https://github.com/AEPKILL/devtools-detector.git
synced 2026-04-26 23:15:48 +03:00
[GH-ISSUE #1] setInterval #86
Labels
No labels
bug
bug
enhancement
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/devtools-detector#86
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @katoto on GitHub (Nov 14, 2018).
Original GitHub issue: https://github.com/AEPKILL/devtools-detector/issues/1
setInterval ? 你用500 一直查询?
@AEPKILL commented on GitHub (Nov 14, 2018):
用的
setTimeout做循环检测,setTimeout比setInterval更容易控制。因为浏览器并没有提供
devtools打开时的事件,所以必须循环检测。其实用
requestIdleCallback方法可以获取最优的性能,但是IE浏览器并不支持这个方法。