jmarantz commented on a change in pull request #1802: Prefer Paint Timing API 
over chrome.loadTimes()
URL: 
https://github.com/apache/incubator-pagespeed-mod/pull/1802#discussion_r225014034
 
 

 ##########
 File path: net/instaweb/rewriter/add_instrumentation.js
 ##########
 @@ -71,11 +71,11 @@ pagespeed.AddInstrumentation.prototype.sendBeacon = 
function() {
   }
 
   url += '&r' + this.event_ + '=';
-  if (window['performance']) {
-    var timingApi = window['performance']['timing'];
+  if (winPerf = window['performance']) {
+    var timingApi = winPerf['timing'];
 
 Review comment:
   if timingApi is null then won't the finding of navigationStart fail below?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to