Problem / Motivation
Many websites will prevent inline JavaScript through Content Security Policy (CSP), see https://content-security-policy.com/.
Because of this, this module will not work in that situation.
Proposed Resolution
Move the JavaScript snippet to an external file.
Optionally, allow a configuration for the site builder to choose whether to load the JavaScript inline or externally.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | d8_google_optimize_hide_page-3159870.patch | 18.57 KB | gtessari |
| #2 | d8_google_optimize_hide_page-3159870.patch | 6.79 KB | josephdpurcell |
Comments
Comment #2
josephdpurcell commentedAdding a patch on behalf of Tessari.
Comment #3
gtessari commentedReviewed the first patch to change the script loading order.
Comment #4
josephdpurcell commentedDon't include a patch in the patch itself.
Also, for subsequent patches, append the comment number. Ideally, also add an interdiff, though that can be a bit tricky.
Comment #6
webfaqtory commentedComment #7
webfaqtory commentedComment #8
webfaqtory commentedComment #9
webfaqtory commented