Title: WARNING: Javascript errors prevent minification and combining js files
Last modified: November 11, 2023

---

# WARNING: Javascript errors prevent minification and combining js files

 *  [thewebserf](https://wordpress.org/support/users/thewebserf/)
 * (@thewebserf)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/warning-javascript-errors-prevent-minification-and-combining-js-files/)
 * Javascript errors prevent minification and combining of js files will break your
   website. After much trial and error trying to diagnose which plugin was breaking
   the combined js file I drilled it down to this file: dist/public-modern.js 
   This
   is a large file riddled with many many errors that is loaded on every page (not
   isolated to pages that contain wp recipe maker). It will break your website if
   you try to minify and combine files.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Brecht](https://wordpress.org/support/users/brechtvds/)
 * (@brechtvds)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/warning-javascript-errors-prevent-minification-and-combining-js-files/#post-17193321)
 * Hi there,
 * A few things to clarify here:
    - I’m not sure where you’re getting “this is a large file riddled with many 
      many errors” from? There are no errors in the file that I’m aware of. The 
      JS functionality all works as expected.
    - The file looks like that because we already combine and minify things on our
      end. The reason for that is performance: only load 1 file and make it as small
      as possible.
    - Other plugins that then try to combine and minify different assets on your
      site could indeed break things. They usually have a warning about that. We
      can’t really do anything about this from our end since they are the ones breaking
      things. Not having our own assets already minified seems like a regression.
    - In those plugins you do usually have the option to exclude certain assets 
      from getting minified. You could add `/wp-recipe-maker/dist/public-modern.
      js` there.
    - Wether our JS loads on every page depends on your settings. “Only load Assets
      when needed” can be enabled on the WP Recipe Maker > Settings > Performance
      page.

Viewing 1 replies (of 1 total)

The topic ‘WARNING: Javascript errors prevent minification and combining js files’
is closed to new replies.

 * ![](https://ps.w.org/wp-recipe-maker/assets/icon-256x256.png?rev=2967063)
 * [WP Recipe Maker](https://wordpress.org/plugins/wp-recipe-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-recipe-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-recipe-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-recipe-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-recipe-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-recipe-maker/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [minification](https://wordpress.org/support/topic-tag/minification/)
 * [optimization](https://wordpress.org/support/topic-tag/optimization/)

 * 1 reply
 * 2 participants
 * Last reply from: [Brecht](https://wordpress.org/support/users/brechtvds/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/warning-javascript-errors-prevent-minification-and-combining-js-files/#post-17193321)
 * Status: not resolved