Reply To: Combining JS files in WP Rocket

Home Forums MapPress Support Combining JS files in WP Rocket Reply To: Combining JS files in WP Rocket

#20596
Chris
Keymaster

Hi,

This might be a question for the Rocket folks rather than me, but MapPress includes the WordPress React module and translation module (and those then include some other libraries). The complete list is: ‘wp-blocks’, ‘wp-components’, ‘wp-compose’, ‘wp-core-data’, ‘wp-element’, ‘wp-media-utils’, ‘wp-i18n’, ‘wp-notices’, ‘wp-url’.

If you look at the page source for script tags you can see the JS being loaded (just deactivate ALL other plugins for a moment first). Here’s what I saw when I tried it. You probably want to exclude at least ‘react.min.js’.

<script src="http://localhost/dev/wp-content/plugins/gutenberg/build/interactivity/index.min.js?ver=16.8.1" id="wp-interactivity-js" defer="" data-wp-strategy="defer"></script><script src="http://localhost/dev/wp-content/plugins/gutenberg/build/block-library/blocks/navigation/view.min.js?ver=e70a0a5a71dbbf7fc336" id="wp-block-navigation-view-js" defer="" data-wp-strategy="defer"></script>
<script src="http://localhost/dev/wp-includes/js/dist/vendor/wp-polyfill-inert.min.js?ver=3.1.2" id="wp-polyfill-inert-js"></script>
<script src="http://localhost/dev/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.14.0" id="regenerator-runtime-js"></script>
<script src="http://localhost/dev/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0" id="wp-polyfill-js"></script>
<script src="http://localhost/dev/wp-content/plugins/gutenberg/build/vendors/react.min.js?ver=18" id="react-js"></script>
<script src="http://localhost/dev/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18" id="react-dom-js"></script>
<script src="http://localhost/dev/wp-content/plugins/gutenberg/build/hooks/index.min.js?ver=700a21be8955e3eb9568" id="wp-hooks-js"></script>
<script src="http://localhost/dev/wp-content/plugins/gutenberg/build/i18n/index.min.js?ver=f5a63315d8d2f363ce59" id="wp-i18n-js"></script>
<script src="http://localhost/dev/wp-content/plugins/gutenberg/build/i18n/index.min.js?ver=f5a63315d8d2f363ce59" id="wp-i18n-js"></script>