Home Forums WoodMart support forum Delaying javascript not working properly

Delaying javascript not working properly

Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #605255

    joelmellin
    Participant

    Hi,

    When we try to delay javascript we get at least these errors:

    1. Product images are not loading on the single product pages without cursor move
    2. When adding a product to cart on a single product page and then go back to the archive page the minicart shows as empty. Even when clicking on the minicart shows zero products.

    We have excluded javascript according to the attached image.

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

    Luke Nielsen
    Keymaster

    Hello,

    1. Please disable all plugins except these ones:

    Elementor or WPBackary
    Woodmart Core
    WooCommerce
    Enable the Parent theme
    Leave enabled the cache plugin.

    Clear the cache and check how it works. Let me know the result.

    2. Make sure that the Cart page is not cached because that page shouldn’t be cached at all.

    Kind Regards

    #605454

    joelmellin
    Participant

    We have tried now with all that you wrote, but there is still no difference. It is not working as expected.

    #605503

    Luke Nielsen
    Keymaster

    Hello,

    Please, confirm the permission for plugins deactivation, and switching to the parent/default theme. As soon as we complete the testing we will enable it all back.

    Kind Regards

    #605553

    joelmellin
    Participant

    Ok, I confirm.

    #606086

    Luke Nielsen
    Keymaster

    Hello,

    I apologize for the delay.

    1. You can try to exclude this productImagesGallery script.

    2. On my side it works well now – https://take.ms/9f8sy, please let me know if you have sorted it out.

    Kind Regards

    #606168

    joelmellin
    Participant

    I tried now, but no it is still the same. When activating the delay option and emptying the cache the problem is there again. I exluded the productImagesGallery in JS delayed excludes.

    #606275

    joelmellin
    Participant
    #606805

    Luke Nielsen
    Keymaster

    Hello,

    Exclude these files – jquery.zoom.min.js initZoom.min.js

    Clear the cache and recheck the issue.

    Kind Regards

    #606860

    joelmellin
    Participant

    Still no success. Same problem is occuring.

    #606888

    Luke Nielsen
    Keymaster

    Hello,

    Send me a video of the problem from your side.

    Thank you in advance.

    Kind Regards

    #606902

    joelmellin
    Participant

    Here, same like as above if you have not already seen it:

    https://www.awesomescreenshot.com/video/32741260?key=3a5f754b42f187b3f2433e51ec13a669

    #607026

    Luke Nielsen
    Keymaster

    Hello,

    Please recheck that issue now and let me know if that works well for you.

    Thank you for your time.

    Kind Regards

    #607067

    joelmellin
    Participant

    Hi again,

    No, it did not solve the thing with the empty cart. And no I got also other problems, that the add to cart does not load by AJAX for example.

    #607306

    Luke Nielsen
    Keymaster

    Hello,

    On my side it works well – https://take.ms/my9m4

    If on your side, you still have that issue, check how it works in the default WooCommerce Storefront theme.

    Let me know the result.

    Kind Regards

    #607460

    joelmellin
    Participant

    In this video I clearly show that it does not work, and not with a standard theme as Storefront for example:

    https://www.awesomescreenshot.com/video/32911748?key=2e9e78d36962f0ad862e1b9305c2de14

    #607614

    Luke Nielsen
    Keymaster

    Hello,

    In the video we can see that the same happens on the default Storefront theme, the delay functionality from LightSpeed affects the mini cart on the default theme as well. I suggest you contact the LightSpeed support team because their “delayed” functionality works badly even on the default theme.

    Kind Regards

    #615303

    joelmellin
    Participant

    I got the answer from LiteSpeed and they asked:

    “Try put these files mentioned by woodmart support, into BOTH JS exclude and JS defer exclude , purge all , see how it happens.

    If you can also ask them (Woodmart) , if there is any inline JS involved, you may need to exclude inline JS as well.”

    So the question is if you know if there is any inline JS involved?

    #615454

    Luke Nielsen
    Keymaster

    Hello,

    All JS code in our theme can be found in the files. Only the custom js that you add to the Theme settings is displayed inline.

    Kind Regards

    #615681

    joelmellin
    Participant

    From Litespeed support:

    “you mean they (Woodmart) ask you or us to look over all of their files ?

    for js files , it’s easy to find , but I think they do also use inline javascript , that’s the hard part to find out”.

    #615707

    Luke Nielsen
    Keymaster

    Hello,

    Please recheck this video – https://www.awesomescreenshot.com/video/32911748?key=2e9e78d36962f0ad862e1b9305c2de14 at 5 minutes of the video we can see the same issue happens on the default Storefront theme – https://take.ms/frlcGb which is not using our JS files and etc. first ask them to fix that problem on the default Storefront theme and only after that recheck how it works with ours theme.

    Thank you for your time and patience.

    Kind Regards

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