Home › Forums › WoodMart support forum › Delaying javascript not working properly
Delaying javascript not working properly
- This topic has 20 replies, 2 voices, and was last updated 2 weeks, 4 days ago by Luke Nielsen.
-
AuthorPosts
-
October 15, 2024 at 7:44 pm #605255
joelmellinParticipantHi,
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.October 16, 2024 at 10:33 am #605360
Luke NielsenKeymasterHello,
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
October 16, 2024 at 1:36 pm #605454
joelmellinParticipantWe have tried now with all that you wrote, but there is still no difference. It is not working as expected.
October 16, 2024 at 4:40 pm #605503
Luke NielsenKeymasterHello,
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
October 16, 2024 at 6:19 pm #605553
joelmellinParticipantOk, I confirm.
October 18, 2024 at 2:43 pm #606086
Luke NielsenKeymasterHello,
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
October 18, 2024 at 6:31 pm #606168
joelmellinParticipantI 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.
October 20, 2024 at 12:49 pm #606275
joelmellinParticipantOctober 22, 2024 at 2:28 pm #606805
Luke NielsenKeymasterHello,
Exclude these files –
jquery.zoom.min.js
initZoom.min.js
Clear the cache and recheck the issue.
Kind Regards
October 22, 2024 at 5:12 pm #606860
joelmellinParticipantStill no success. Same problem is occuring.
October 22, 2024 at 5:54 pm #606888
Luke NielsenKeymasterHello,
Send me a video of the problem from your side.
Thank you in advance.
Kind Regards
October 22, 2024 at 7:04 pm #606902
joelmellinParticipantHere, same like as above if you have not already seen it:
https://www.awesomescreenshot.com/video/32741260?key=3a5f754b42f187b3f2433e51ec13a669
October 23, 2024 at 11:54 am #607026
Luke NielsenKeymasterHello,
Please recheck that issue now and let me know if that works well for you.
Thank you for your time.
Kind Regards
October 23, 2024 at 1:33 pm #607067
joelmellinParticipantHi 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.
October 24, 2024 at 11:52 am #607306
Luke NielsenKeymasterHello,
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
October 24, 2024 at 7:37 pm #607460
joelmellinParticipantIn 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
October 25, 2024 at 2:23 pm #607614
Luke NielsenKeymasterHello,
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
November 24, 2024 at 9:54 pm #615303
joelmellinParticipantI 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?
November 25, 2024 at 11:52 am #615454
Luke NielsenKeymasterHello,
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
November 25, 2024 at 5:32 pm #615681
joelmellinParticipantFrom 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”.
November 25, 2024 at 6:13 pm #615707
Luke NielsenKeymasterHello,
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
-
AuthorPosts
- You must be logged in to create new topics. Login / Register