Title: Inline JS Minification Error
Last modified: July 29, 2019

---

# Inline JS Minification Error

 *  Resolved [Paras Shah](https://wordpress.org/support/users/parasshah/)
 * (@parasshah)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/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 saying `Unexpected
   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.

 * ![](https://ps.w.org/cache-enabler/assets/icon.svg?rev=2442383)
 * [Cache Enabler](https://wordpress.org/plugins/cache-enabler/)
 * [Support Threads](https://wordpress.org/support/plugin/cache-enabler/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-enabler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-enabler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-enabler/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Paras Shah](https://wordpress.org/support/users/parasshah/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/inline-js-minification-error/)
 * Status: resolved