Home Forums WoodMart support forum Woodmart + LiteSpeed Cache – JS not working

Woodmart + LiteSpeed Cache – JS not working

Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #700584

    petro.vince28
    Participant

    I would like to ask for your help regarding a critical problem on our website.
    We are using Woodmart theme + LiteSpeed Cache, and we are experiencing a very specific and persistent issue.

    The problem:
    After the site cache is rebuilt (LiteSpeed Cache), the JavaScript functions randomly stop working across all browsers. This only appears on mobile phones.
    When the problem appears:

    After LiteSpeed cache purging → site works for 2–3 reloads

    Once the cache becomes “fully optimized” by LiteSpeed →
    the JS breaks again

    What stops working:

    Hamburger menu does not open

    Homepage slider stops working

    Product images inside the slider are not clickable

    Several JS-based Woodmart functions fail to initialize

    The issue appears primarily on the homepage, but the behavior is inconsistent — sometimes it affects other pages too. If I disable LiteSpeed Cache, the entire site works perfectly and consistently but I would like to use this plugin because with that my page score much better than without it. What we have already tried

    We have tried every known solution, for example:

    Excluding all recommended Woodmart JS files

    Testing with Delay JS OFF

    Testing with JS Combine OFF

    Testing with CSS Combine OFF

    Minify JS/CSS ON and OFF

    Disabling UCSS

    Disabling Critical CSS

    Turning off all optimizations one by one and in combinations

    Clearing all caches (LiteSpeed, browser)

    Disabling CDN

    Reinstalling LiteSpeed Cache

    Resetting the LiteSpeed settings to default and reconfiguring manually

    The issue still persists. I write below my credentials for my staging site. Thank yoiu

    #700649

    Artem Temos
    Keymaster

    Hello,

    We just tested your website, but don’t see the mentioned issue. Could you please clarify how we can reproduce the problem step by step?

    Kind Regards

    #700653

    petro.vince28
    Participant

    Thank you for checking the website.

    However, the issue is still happening on my side — specifically on mobile devices, in any mobile browser, including when opening the site in incognito/private mode or from a browser that has never visited the site before.

    In these cases, several JavaScript functions simply do not work on mobile:

    the hamburger menu does not open

    the homepage sliders do not move

    product images inside sliders are not clickable

    the popup does not display its content

    I recorded a short video showing the issue.
    In the video it may not be visible when I tap, but I am clicking the menu, sliders, and popup(does not display its content) — none of them respond.

    Multiple customers (mine) have also reported the same problem, so it does not seem to be device-specific.

    To reproduce the problem, please try:

    Use any mobile device

    Open the site in incognito/private mode, or in a mobile browser that hasn’t stored any previous data for the site

    Navigate to the homepage

    Try using the menu, sliders, or popup — the JS does not work

    It feels like some optimized or delayed JS (related to LiteSpeed Cache) is not being loaded correctly on mobile, but I’m not sure which file or script needs to be excluded.

    I hope the video helps clarify the issue, and I kindly ask for your assistance since this is causing problems for users as well.

    Thank you!

    Attachments:
    You must be logged in to view attached files.
    #700656

    Artem Temos
    Keymaster

    Thank you for the video. Could you please also temporarily disable all plugins that are not related to our theme? Clear the cache and test how it works. Keep plugins turned off so we can test from our end as well.

    #700657

    petro.vince28
    Participant

    Thank you for your answer!

    I have now disabled all plugins except LiteSpeed Cache, because without LiteSpeed everything works perfectly.
    The issue only appears when LiteSpeed Cache is active — but without it, my page speed scores become very poor, so I would really like to keep using it if possible.

    I also cleared the entire LiteSpeed cache, but when I test the site in mobile incognito/private mode, the problem still appears every time.

    You can now check the site from your end as all non-theme plugins are turned off (except LiteSpeed Cache, which is required to reproduce the issue).

    Thank you for your help!

    #700658

    petro.vince28
    Participant

    Try another browser if its possible, because after the first load I clear the cache it works. But the problem is why is not working on the first load? (This is a big problem for me, because every new client cannot use my page properly)

    #700700

    Artem Temos
    Keymaster

    As we can see, the LiteSpeed cache is active now and it works on the first load. We tested in different browsers. So the issue might be caused by some of the installed plugins that are currently turned off.

    #700701

    petro.vince28
    Participant

    Thank you for your answer.

    Okay, but then why does this sometimes happen? As we could see in the video, it wasn’t working, so it seems to occur randomly. I just tried loading the site in incognito mode, cleared the LiteSpeed cache, and then reloaded the page—it still didn’t work. Could you please try this as well? (Im not clearing the browser cache, i only Purge the LiteSpeed Cache, I insert photo below, im using the fourth option)

    Thank you so much for your help and Im sorry for this

    Attachments:
    You must be logged in to view attached files.
    #700704

    petro.vince28
    Participant

    Im just loaded the page with random mobile after i purged the cache and its not working in incognito

    #700732

    Artem Temos
    Keymaster

    Try to exclude wp-includes/js/jquery/jquery.min.js file from being delayed in Litespeed settings. Clear everything and test again.

    #700750

    petro.vince28
    Participant

    Thank you for the suggestion. I have excluded the jQuery file from the LiteSpeed “JS Delay Excludes” settings as requested, cleared all caches (including browser cache), and tested again — unfortunately the issue still persists.

    Please try to reproduce it on your side, because it is happening consistently for me.

    What I am doing is very simple:

    After clearing the cache, in normal mode, the site sometimes appears to work for a short time (not always).
    But in incognito/private mode, the problem almost always appears immediately.

    1. I purge the entire LiteSpeed Cache
    2. I open the website on three different mobile browsers (Safari, Chrome, Edge)
    3. I open the site in incognito/private mode
    4. In at least one of the browsers, the problem immediately appears:
    – hamburger menu does not open
    – sliders do not work
    – popup content does not appear
    – product images in sliders are not clickable

    So this is not a rare or random issue — it happens every time I clear the cache and test across multiple mobile browsers.

    Since everything works perfectly when LiteSpeed Cache is disabled, this clearly seems to be related to how the theme’s JavaScript interacts with LiteSpeed’s optimization.

    I would really appreciate your help, because as it stands, several customers have reported the issue and it is causing real usability problems on mobile.

    Thank you so much for your kind help!

    Attachments:
    You must be logged in to view attached files.
    #700904

    Artem Temos
    Keymaster

    Hello,

    As we can see, the jQuery library is still delayed and breaks other scripts from working correctly. Check the screenshot

    Kind Regards

    #700906

    petro.vince28
    Participant

    Where did you find that? And can you give me some suggestion how can i resolve that? Because I put everything inside the js excludes and still not working. I only found this in my scripts:

    Attachments:
    You must be logged in to view attached files.
    #700965

    Artem Temos
    Keymaster

    Yes, your screenshot looks correct. But when I open the source code in the private (incognito) tab, I still see the delayed script. So it might be a problem with the plugin configuration, or the cache is not properly cleared.

    #700972

    petro.vince28
    Participant

    Unfortunately, at this point I do not have any further steps to move on with, as I have already tried all available options on my side.

    I have also seen several previous posts and discussions about LiteSpeed Cache causing issues with the Woodmart theme, especially related to JavaScript loading and delays. Based on those, I followed all recommended steps: excluding specific JS files, disabling delay/defer options, and testing different configurations.

    However, even after applying all those suggestions, the problem still persists — which, thankfully, you can also see from your own testing and screenshots.

    Could you please help me with how exactly this should be configured?

    Thank you very much for your help, I truly appreciate it.

    #701073

    Artem Temos
    Keymaster

    Hello,

    As we can see, the JS delay option is turned off on your website and now it works correctly. Unfortunately, we don’t know why this option doesn’t work correctly, but it is not something directly related to WoodMart. You can try to contact plugin’s developers for further assistance.

    Kind Regards

    #701139

    petro.vince28
    Participant

    Still not working correctly, but yeah, I will contact them too.

    Thank you for your help

    #701252

    Artem Temos
    Keymaster

    Okay, please let us know if you have any new information from the developer. We are open to collaborating to solve this issue.

    #701397

    petro.vince28
    Participant

    I finally resolve the issue. In hostinger I had to disbale CDN, because it can conflict with certain options.

    #701442

    Artem Temos
    Keymaster

    Great, we are glad that you sorted it out. Feel free to contact us if you have any further questions.

Viewing 20 posts - 1 through 20 (of 20 total)

The topic ‘Woodmart + LiteSpeed Cache – JS not working’ is closed to new replies.