How to fix header after using JS Minify?
Briefly

To resolve issues with LiteSpeed Cache damaging the header in WordPress when minifying JS, you should exclude header scripts, disable JS Defer or Async, and avoid combining JS files.
Review the LiteSpeed Cache settings carefully—sometimes, improperly ordered scripts after combining can lead to functional breakdowns in JavaScript-dependent features like headers.
If the problem continues, test your site without the JS minification altogether while checking console errors to identify the scripts that might be causing the escalating issues.
Alternatively, ensure that the folder where LiteSpeed Cache stores minimized files has the correct permissions set, as this might prevent the saving of minimized files.
Read at SitePoint Forums | Web Development & Design Community
[
|
]