Title: javascript not working
Last modified: October 11, 2021

---

# javascript not working

 *  Resolved [darrenc4](https://wordpress.org/support/users/darrenc4/)
 * (@darrenc4)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-working-32/)
 * hi, our simple javascript code for contact form 7 has stopped working when litespeed
   caching plugin enabled
 * sample of javascript code
    jQuery(“#id-name”).val(prod_url); jQuery(‘checkbox’).
   prop(‘checked’, true);
 * if I add timer function it works, like 1 or 2 seconds. I tried to move the script
   in different order, tried .ready and .load still didnt work.
 * I also tried to add contact form in js exclude, change js combine exclude etc
   all didnt work.
 * Thanks.

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

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-working-32/#post-14960385)
 * Hi,
 * if you disable all JS options , purge all , did it work ?
 * first of all need to narrow down which option leads to trouble , and then see
   how to deal it
 * Best regards,
 *  Thread Starter [darrenc4](https://wordpress.org/support/users/darrenc4/)
 * (@darrenc4)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-working-32/#post-14960636)
 * Yes,
 * I tried all the possible options in backend. all didnt work.
    Also, contact form
   7 has an update last night, and still didnt fix the issue. And if litespeed disabled
   the scripts were working, so it must be something with litespeed that break the
   script.
 * Thanks again.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-working-32/#post-14960637)
 * Hi,
 * let’s try the old-fashion way then
 * please go to toolbox -> export/import -> export your current setting , then reset
   to default
 * see if it works with default , the default setting will have all optmization 
   features off, but only keep the caching
 * and then we can try to locate/narrow down which options that is
 * Best regards,
 *  Thread Starter [darrenc4](https://wordpress.org/support/users/darrenc4/)
 * (@darrenc4)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-working-32/#post-14960638)
 * Just tried and didnt work.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-working-32/#post-14964320)
 * Hi,
 * default setting didn’t work ?
 * now that is weird
 * please check the output HTML source code with default setting and with plugin
   disabled , also the request list
 * see if there is any difference in HTML code , or some request missing or something
 * Best regards,
 *  Thread Starter [darrenc4](https://wordpress.org/support/users/darrenc4/)
 * (@darrenc4)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-working-32/#post-14964451)
 * looks fine.
    also happen if I rollback to previous version of litespeed, and 
   happens to other site just so you know.
    -  This reply was modified 4 years, 8 months ago by [darrenc4](https://wordpress.org/support/users/darrenc4/).
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-working-32/#post-14964453)
 * Hi,
 * please don’t share it in public
 * please remove above reply , and send it to `support at litespeedtech.com` with
   reference link to this topic
 * Best regards,
 *  Thread Starter [darrenc4](https://wordpress.org/support/users/darrenc4/)
 * (@darrenc4)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-working-32/#post-14964458)
 * Invalid email so I had to click the button send to litespeed in toolbox report
   tab.
 * Thanks again.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-working-32/#post-14964460)
 * you need to change `at` to `@` …
 *  Thread Starter [darrenc4](https://wordpress.org/support/users/darrenc4/)
 * (@darrenc4)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-working-32/#post-14964464)
 * Yes, I did. can you check.

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

The topic ‘javascript not working’ 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

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

 * 10 replies
 * 2 participants
 * Last reply from: [darrenc4](https://wordpress.org/support/users/darrenc4/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-working-32/#post-14964464)
 * Status: resolved