incubator-pagespeed-ngx
incubator-pagespeed-ngx copied to clipboard
Critical Image Beacons don't work with CSP
trafficstars
Despite having enabled the HonorCSP value, there is still a load of JS being inserted into the page. The CSP will stop the browser from running this code and therefore it is just bloating the response for no reason.
An example is the critical image beacons which inserts onload functions inline.
Presumably, the JS will need to be rewritten such that it is included from a file.