gtm4wp
gtm4wp copied to clipboard
Minification of frontend JS ressources
I know it wouldn't save a lot, but is there a specific reason why the scripts loaded on the frontend are not minified? If no, could that be added? I would provide a PR but first it would be good to discuss what the preferred approach would be.
Thanks!
I also think the scripts should be minified. Plugin could respect SCRIPT_DEBUG
constant and load formatted scripts only if it's set to true
.
I would be happy to add this, could someone help me wringing the corresponding scripts?
you mean something like Gulp script to generate minified versions?
@duracelltomi @morvy provided a PR. Happy to receive some feedback.
Thanks for the quick addition! I am just in the work on closing dev on v1.17, I will check back a bit later to this PR
@duracelltomi any news on this one?