adfisch
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] Feature request: Recognize JS ES6 modulesHello @vmarko,
thanks for your fast reply. I am using JSMin on disk. However, I think it does not matter which minification method is used. The problem is rather how the minified script is embedded. For example, I use custom code to be able to insert JS modules:
<script type=”module” src=”PATH-TO-JS-MODULE.JS”></script>
However, after minification the type=”module” attribute will get lost:
<script src=”PATH-TO-MINIFIED-FILE.js></script>
It would be awesome if the minification module could recognize the type=”module” attribute and preserve it for minified scripts. I think that’s “all” that needs to be done.
Thank you very much in advance! ??
- This reply was modified 2 years, 7 months ago by adfisch.
If that was a long response time, I want to know what your short one is… ?? Thank you very much, it worked like a charme.
For other readers it might be noteworthy that the above code will disable the SmartCrawl meta box for all taxonomies. If you only wish to disable it for certain taxonomies you can use this code:
... $taxonomy = smartcrawl_get_array_value( $_GET, 'taxonomy' ); $disabled_taxonomies = array( 'taxonomy_slug1', 'taxonomy_slug2' ); if ( ! in_array( $taxonomy, $disabled_taxonomies ) ) { return; } if ( is_admin() && ! empty( $taxonomy ) ) { ...
- This reply was modified 3 years, 10 months ago by adfisch.
Yes, exactly. ??
Hi Predrag & Patrick,
sorry for my late reply. Your solution works like a charme. ??
Best regards from Germany.