Title: Javascript stops working when cache is on
Last modified: October 14, 2021

---

# Javascript stops working when cache is on

 *  Resolved [Mastafu Design](https://wordpress.org/support/users/mastafu/)
 * (@mastafu)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/javascript-stops-working-when-cache-is-on/)
 * Hi, any idea why script stops working when cache is on ?
    Without cache value
   is being printed in the textarea, witch cache it doesnt work. <script data-no-
   optimize=”1″> //Set email value document.querySelector(‘#textarea’).value = ‘
   Message’; </script>

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/javascript-stops-working-when-cache-is-on/#post-14971815)
 * Hi,
 * please provide the report number
 * you can get it in toolbox -> report -> click “send to LiteSpeed”
 * Best regards,
 *  Thread Starter [Mastafu Design](https://wordpress.org/support/users/mastafu/)
 * (@mastafu)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/javascript-stops-working-when-cache-is-on/#post-14972394)
 * Sent
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/javascript-stops-working-when-cache-is-on/#post-14975299)
 * Hi,
 * after you clicked send , it will generate a 8-capital-letters string , I will
   need that string to locate your report
 * Best regards,
 *  Thread Starter [Mastafu Design](https://wordpress.org/support/users/mastafu/)
 * (@mastafu)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/javascript-stops-working-when-cache-is-on/#post-14975792)
 * SDSVDGEZ
    [https://wybierzdewelopera.pl/deweloper/moderna-life/](https://wybierzdewelopera.pl/deweloper/moderna-life/)
   There should be text displayed in the form’s textarea, once you turn off cache
   it appears.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/javascript-stops-working-when-cache-is-on/#post-14977008)
 * Hi,
 * I don’t see any text even if I bypass the LSCWP
 * [https://wybierzdewelopera.pl/deweloper/moderna-life/?LSCWP_CTRL=before_optm](https://wybierzdewelopera.pl/deweloper/moderna-life/?LSCWP_CTRL=before_optm)
 * please do me a screenshot where that text should be or how it looks like
 * Best regards,
 *  Thread Starter [Mastafu Design](https://wordpress.org/support/users/mastafu/)
 * (@mastafu)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/javascript-stops-working-when-cache-is-on/#post-14977309)
 * Hi,
 * Cache on
 * [https://snipboard.io/E9T8pd.jpg](https://snipboard.io/E9T8pd.jpg)
 * Cache off
 * [https://snipboard.io/u5TZvh.jpg](https://snipboard.io/u5TZvh.jpg)
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/javascript-stops-working-when-cache-is-on/#post-14978501)
 * please create a ticket by mail to `support at litespeedtech.com` with reference
   link to this topic
 * we will investigate further
 *  Thread Starter [Mastafu Design](https://wordpress.org/support/users/mastafu/)
 * (@mastafu)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/javascript-stops-working-when-cache-is-on/#post-14979203)
 * Ok, done.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Javascript stops working when cache is on’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 8 replies
 * 2 participants
 * Last reply from: [Mastafu Design](https://wordpress.org/support/users/mastafu/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/javascript-stops-working-when-cache-is-on/#post-14979203)
 * Status: resolved