Combine already minified JS file without minifying again?




Wordpress LScache Plugin: Combine already minified JS file without minifying again?

Last Updated on: Wed, 15 Apr 2026 00:00:02
Ive got a plugin with an already minified JS file (WP Recipe Maker Premiums public-elite.js). For whatever reason, one of the functions in this JS file looks for a starting comment (/ ) to do something which isnt relevant here. However, this comment string in the middle of the file causes the minification parser to incorrectly strip out the rest of the JS file after that point resulting in a broken combined/minified file. Ive worked around this for now by excluding that JS file from optimization but Id like to know if there is a way to add it into the combined JS file without it also going through the minifier. Any thoughts appreciated. Hi, Please disable Remove Comments in Optimize tab. If it doesnt work, that means the JS comment is removed in minify engine. Does that JS filename contain .min. or -min.? If so, it will be automatically bypassed the JSMin minify engine and just combine. If not, is it possible to rename it to have it? Thanks, Hai ? I will dequeue the file from WP Recipe Maker and re-register a copy in my theme with the .min.js extension. I will also open a ticket with WP Recipe Maker to ask them to add the .min. to the filename. An update ? I tried it with the file as .min.js but had the same issue. Disabling Remove Comments solved the problem, but it would be good to strip the comments from other files.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference