• thewebserf

    (@thewebserf)


    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

    (@brechtvds)

    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.