• Resolved darrenc4

    (@darrenc4)


    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

    (@qtwrk)

    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

    (@darrenc4)

    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

    (@qtwrk)

    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

    (@darrenc4)

    Just tried and didnt work.

    Plugin Support qtwrk

    (@qtwrk)

    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

    (@darrenc4)

    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 3 years ago by darrenc4.
    Plugin Support qtwrk

    (@qtwrk)

    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

    (@darrenc4)

    Invalid email so I had to click the button send to litespeed in toolbox report tab.

    Thanks again.

    Plugin Support qtwrk

    (@qtwrk)

    you need to change at to @

    Thread Starter darrenc4

    (@darrenc4)

    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.