WP Rocket’s JavaScript minification ISSUE
-
Hello,
I’d like to report a JavaScript compatibility issue involving WP Rocket’s JavaScript minification.
Some JavaScript files in this plugin contain multiline string literals that use backslash line‑continuation inside quoted strings (a backslash at the end of the line followed by a real newline, continuing the same string on the next line). This pattern is used inside jQuery selector strings.
While this syntax is valid JavaScript and works at runtime, it is known to cause problems for some JavaScript minifiers, including WP Rocket’s minification process. In this case, WP Rocket appears to skip minifying these files entirely, presumably to avoid generating broken output.
This is not a runtime JavaScript error, but a tooling / compatibility issue that affects optimization and performance when WP Rocket is enabled.
I’m reporting this as a potential bug or compatibility concern so it can be reviewed.
Thank you.
You must be logged in to reply to this topic.