incubator-pagespeed-mod
incubator-pagespeed-mod copied to clipboard
Prefer Paint Timing API over chrome.loadTimes()
Fixes apache/incubator-pagespeed-ngx#1537
This looks good to me; did you get a chance to test this? Is this ready for merging?
Just tested with the mod_pagespeed build process. Indeed, Closure Compiler doesn't like the omission of var
declarations.
Right now, getEntriesByType('paint')
always returns an empty array. The entries only populate after the load
event for window
. Is it possible to defer running the entire instrumentation block?
I noticed that the build process uses pre-optimized files in net/instaweb/genfiles/rewriter
, which will need to be updated. How were those initially generated?
@injust is this good to go as far as you are concerned?