It strips off script attributes
-
The latest version of the AMP plugin will serve module scripts to supporting browsers.
The Module scripts will be served to modern browsers and nomodule scripts will be served to old browsers.
Breeze plugin’s minification and deferring functonalitiues are stripping out the
type="module"
andnomodule
attribute from a script which is required, and replacing them withapplication/javascript
I will recommend adding a check for the AMP version of the page and skipping the minification feature
// The Page is AMP so don't minifiy stuff. if ( function_exists( 'amp_is_request' ) && amp_is_request() ) { return false; }
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘It strips off script attributes’ is closed to new replies.