Re: [paint-timing]

Ah, nice catch! Thanks for reporting this.

+Shubhie Panicker <panicker@google.com> fyi, a quick fix? :-)

On Tue, Aug 21, 2018 at 4:22 AM 刘博文 <liubowen@360.cn> wrote:

> 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 notificationsobserver.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 notificationsobserver.observe({entryTypes: ["paint"]});
>
>
>

Received on Tuesday, 21 August 2018 16:13:35 UTC