incubator-pagespeed-ngx icon indicating copy to clipboard operation
incubator-pagespeed-ngx copied to clipboard

Critical Image Beacons don't work with CSP

Open Dreamsorcerer opened this issue 6 years ago • 0 comments
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.

Dreamsorcerer avatar Jan 13 '19 13:01 Dreamsorcerer