How to fix header after using JS Minify?

So I am currently using a block builder inside Wordpress, not a page builder. And for some reason when I use LiteSpeed Cache to minify JS it completely damages the header. Any suggestions on how I can fix this?

Link: https://megagongroup.com/

It tells you the error. It can’t find the minimized file.

Where is it actually storing it? Or does the script not have the appropriate permissions to actually save the minimized file?

It seems that LiteSpeed Cache’s JS minification might be interfering with your header scripts. You can try excluding the header-related scripts from minification in the JS Excludes section, disable JS Defer or Async, and avoid combining JS files as this may break the order of execution. If the issue persists, test without minification to confirm the cause and use the browser’s developer console to check for JS errors. Adjusting these settings should help resolve the problem.

1 Like