Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Support qtwrk

    (@qtwrk)

    I remember woodmart theme has ajax update for cart ? that should load the cart content after page is load

    alternatively , you can go to cache -> woocommerce -> enable “vary for mini cart” , then purge all

    that’s exactly what JS delay do , js wont’ be executed until certain action like move cursor is detected , which exactly indicate the js delay is working

    you probably want to say js delay excluding is not working , you may also need to exclude these keyword from js exclude as well

    Thread Starter joelmellin

    (@joelmellin)

    Yes Woodmart uses AJAX. But when I try to use the delay javascript the cart is empty after going back from a single product page even if I added a product. And this is the case also when I use a standard theme, not only Woodmart. When Javascript delay is activated the product is also added by page reload instead of AJAX.

    I tried “go to cache -> woocommerce -> enable “vary for mini cart” , then purge all”, but it did not do any difference.

    Plugin Support qtwrk

    (@qtwrk)

    a wild guess , try put wd and wood into JS exclude and JS defer/delay exclude , purge all , see how it goes

    Thread Starter joelmellin

    (@joelmellin)

    It is closer to a solution now. The “wd” and “wood” made it to add by AJAX again instead of reloading the page when a product is added to cart. To use cache -> woocommerce -> enable “vary for mini cart” also made a change to the cart when going back from a single product page to the shop page in the way that it now shows what the cart contains:

    https://snipboard.io/Te4cDN.jpg

    Before it showed 0.

    However, when clicking on it, it shows still that it is empty.

    https://snipboard.io/GAn3FZ.jpg

    Plugin Support qtwrk

    (@qtwrk)

    did you enable CSS minify ? if so , try disable it

    Thread Starter joelmellin

    (@joelmellin)

    I tried to disable it, but no difference at all.

    Plugin Support qtwrk

    (@qtwrk)

    okay , let’s try the old fashion way , what does it show if you disable all JS and CSS options ?

    I assume it will work by then , after that , please re-enable them back one by one , see which one caused issue , we will see what to do next

    Thread Starter joelmellin

    (@joelmellin)

    If we disable all JS and CSS options it is ok. After we re-enable them back one by one everything is ok until enabling the delaying of Javascript.

    Plugin Support qtwrk

    (@qtwrk)

    please provide the report number , you can get it in toolbox -> report -> click “send to LiteSpeed”

    Thread Starter joelmellin

    (@joelmellin)

    Report number: GWOZGBVG

    Plugin Support qtwrk

    (@qtwrk)

    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 , if there is any inline JS involved, you may need to exclude inline JS as well.

    Thread Starter joelmellin

    (@joelmellin)

    I tried to put the files mentioned by woodmart support, into BOTH JS exclude and JS defer exclude, but no difference still. Waiting answer from Woodmart about if there is any inline JS involved.

    Thread Starter joelmellin

    (@joelmellin)

    From Woodmart support:

    “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.”

    Plugin Support qtwrk

    (@qtwrk)

    you mean they 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

    Thread Starter joelmellin

    (@joelmellin)

    From Woodmart support:

    “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 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Delaying javascript not working properly’ is closed to new replies.