- From: 刘博文 <liubowen@360.cn>
- Date: Tue, 21 Aug 2018 11:20:35 +0000
- To: "public-web-perf@w3.org" <public-web-perf@w3.org>
- CC: 李松峰 <lisongfeng@360.cn>
Received on Tuesday, 21 August 2018 11:21:05 UTC
Hello Everyone. in the https://w3c.github.io/paint-timing/ draft , I found an error. In the 1.1. Usage example section, The last line of comment code is wrong. var observer = new PerformanceObserver(function(list) { var perfEntries = list.getEntries(); for (var i = 0; i < perfEntries.length; i++) { // Process entries // report back for analytics and monitoring // ... } }); // register observer for long task notifications observer.observe({entryTypes: ["paint"]}); The comment code should be changed to the following: var observer = new PerformanceObserver(function(list) { var perfEntries = list.getEntries(); for (var i = 0; i < perfEntries.length; i++) { // Process entries // report back for analytics and monitoring // ... } }); // register observer for paint timing notifications observer.observe({entryTypes: ["paint"]});
Received on Tuesday, 21 August 2018 11:21:05 UTC