Loading issue – Woodmart WooCommerce Subcategories
-
Hello,
First of all, I love the Woodmart theme! We use it on our testlocation.
I have a loading question.
When you visit our website and go for example to the product category Decals > KTM (this is a sub category) > SX(F) + SMR 2023 (this is a sub-sub category), the page is going to load the products and you see the loading icon. That is good. But then it stops loading and you see again the sub-sub category items (/c/decals/ktm/) for a couple of seconds (but the browser is still loading the products) and after that then only shows up the products.
Is there a way to prevent the sub-sub category coming back into the screen? I’ve tried a lot of things, also a cache plugin (WP Rocket Pro), but nothing helped.
I would love to hear from you.
Kind regards,
Dennis
Hello,
Our AJAX requests have a timeout of 5 seconds and if they don’t get a response from the server at this time the page will be loaded in a natural way. If you need, we can give you an instruction how to increase this time to 10 or 15 seconds but it is not a solution and you can try to disable this function completely or check your performance. Because it should be loaded in 0.5-1.5 seconds at most.
Kind Regards
Thank you for your quick response!
I would love to get instructions about how to increase the AJAX request time to 10 – 15 seconds, so it’s temporary fixed and then after that I have to look further try to get better performance.
Hope to hear from you. Thanks in advance!
Try to add the following code to the functions.php file in your child theme
add_filter( 'woodmart_pjax_timeout', function(){
return 30000;
} );
Kind Regards
Yes, that option is working for now. Thank you so much!
In the meantime I’ll looking for a solution for better performance.
We are always happy to help. Feel free to contact us if you have any further questions.
Kind Regards
The topic ‘Loading issue – Woodmart WooCommerce Subcategories’ is closed to new replies.