为你的网站自动添加一个进度条:pace
jopen
10年前
Pace 能够自动为你的网站增加进度条,它会自动监控 Ajax 请求、事件循环延迟、文档就绪状态来显示进度信息。
Collectors是用于收集进度信息,Pace包含四个默认的collectors:
-
Ajax
Monitors all ajax requests on the page
-
Elements
Checks for the existance of specific elements on the page
-
Document
Checks the document readyState
-
Event Lag
Checks for event loop lag signaling that javascript is being executed