Inline JS Minification Error
-
Problem:
Cache Enabler does not remove Inline Comments from Inline JS which leads to the rest of the JS code after the Inline Comment ignored which in turn throws an error.
Situation when problem acknowledged:
Was adding custom inline JS Script in Elementor page builder with comments for objects in a function (for self-reference). The
HTML & Inline JS
Minification option was activated in Cache Enabler. The console threw an error sayingUnexpected end of input
(something along those lines) and on checking the minified source code, realized that the minified output had Inline JS Comments due to which the rest of the objects in the function were ignored and hence the parse error.Proposed solution:
Remove Inline JS Comments on minification.
- The topic ‘Inline JS Minification Error’ is closed to new replies.