sec / block-javascript
Block unwanted Javascript from your Shopware 6 storefront.
Package info
github.com/stefan-eik-christiansen/SecBlockJs
Language:Twig
Type:shopware-platform-plugin
pkg:composer/sec/block-javascript
Requires
- shopware/core: ~6.6.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Increase pagespeed, block Javascript where unwanted.
Add to Shopware
Add to composer.json using
composer require sec/block-javascript
Compile the admin to start using it.
Instructions
Compatible with onprem and PaaS
Keep it the 1st after 'Storefront' in themes.json to allow 3rd party plugins further extension of the meta.html.twig's Javascript block.
Find the plugin's settings in the admin, within "Settings / Extensions / My Extensions".
Add the string matching the Javascript you want to block to the input field referring the route you want it to be blocked in.