Unnecessary AJAX Requests
-
Hi, your plugin make an AJAX calls (/?wc-ajax=get_wishlist_fragments) at any time when a page is loaded, which cause a lot of loading time to other AJAX request which are actually necessary.
Is it possible to prevent these until a visitor actually add something in the wishlist?
Thanks!
-
Hello,
Thanks for contacting us! By default, the plugin makes AJAX calls to ensure the wishlist is always updated if caching is enabled. This can be helpful for providing a seamless user experience, but it can also cause unnecessary load on other AJAX requests on your site.
And yes, you can disable this feature. Please follow these steps:
- Go to your WordPress dashboard.
- Navigate to WooCommerce > Settings > Wishlist.
- Look for the option related to AJAX loading update and disable it.
Here is the screenshot of the option:
In the future updates, we will improve this ajax request, so it won’t affect the loading time of the website.
Hi, thanks for your reply.
I know how to disable the AJAX loading, but like you said this will cause Cache issues, anyway, I did not ask you how to stop this, I ask you how to Prevent the AJAX request until actualy is needed, for example to work only after something is added to the wishlist.
I alredy found another wishlist plugin which doing exactly that what I asked for, but I still use your, because is compatible with the theme which I use. If you like I can send you a link to the plugin from where you probably can get an idea – it’s free and is on wordpress repository.
But please I don’t want to change plugins, just make it work better, I’m sure that will be good for everyone not only me.
Thanks!
Hi,
Thanks for clarifying your question. The current AJAX calls are indeed necessary to ensure the various components of the wishlist plugin reflect the most up-to-date information for your users. This includes keeping elements like the wishlist button state, wishlist counter, etc.
We’d be grateful if you could share the link to the plugin you mentioned. This would be a valuable reference for us in exploring potential improvements for future updates of WCBoost – Wishlist.
Thank you
Yes for sure, this is the plugin:
https://www.ads-software.com/plugins/smart-wishlist-for-more-convert/
and Yes this plugin do everything what you mention in your post, but doing it when IS NEEDED, so not all the time only when the visitor actually add something in the Wishlist, and also what is even better with this plugin is that when you as a visitor REMOVE all of your added items from the Wishlist, it stops the AJAX calls until you add something new.
And another clue about this plugin – it uses 3 different types of AJAX operations, I don’t know what is the difference between them, I’m not developer, but the method “WP Loaded Hook” work best on my staging site ??
I hope that will be helpful for you and soon to see it in your plugin ??
Thanks!Thanks for sharing the plugin! We checked it out. Our developer has tested this plugin and it indeed send AJAX request too, as you can see in this screenshot: https://prnt.sc/zuN0BoOEcrnk
Additionally, we noticed this plugin seems to queue its AJAX request to run at the very end. This can actually delay the full page load compared to our approach, which prioritizes the wishlist request earlier on. Here are some screenshots:
https://prnt.sc/sTNNE1zJTrSF
https://prnt.sc/uFDemXh3jCUoIn our testing, there are other things from this plugin that may affect website grade too: it loads more resources, no accessibility fallback, etc.
However, this plugin also offer interesting features too. We’ll consider these insights for potential future updates to balance functionality, user experience, and loading speed.
Thank you!
I agree with you, every Wishlist plugin do AJAX Calls to refresh the Products in Wishlist or some kind of Widget to prevent Cache issues, it’s normal.
But I’m in contact with the mentioned above plugin developer last week and he make it work even better for me, but the new changes will be included in the next update.
Anyway, where is the difference, if I disable your plugin anti Cache option, your plugin will not work properly at front end when the pages are Cached, but with this plugin which I mention in my previous post, with anti Cache option Disabled, still refresh the needed information around (Widget, Shortcode, Icons over Products, etc.), but it do it only when is needed. And what I mean is, if a visitor land directly on a page which is been Cached by someone else with an item in the Wishlist, only then the AJAX Call run and refresh whatever it should, but if the visitor open a page (Cached or not) without anything in the Wishlist, the AJAX Call not run at all. Also another example, if you add something to the wishlist and continue explore the website, changing pages looking around, whatever, every time when you change a page the AJAX Call will run, but if you remove anything from the wishlist, the ajax call will stop, no matter which page you visit will not run until you add a new thing to the Wishlist.
All of this is when the Cache protection of the plugin is disabled, but the Cache of the website is Enabled like ussual. I have no idea how this plugin do this, I’m not developer, but that’s why I gave you a link of it, because you are. Maybe is not a big difference, but this feature of the plugin help a lot for my very very slow website, because it’s a one job less….
And please I don’t want to argue with you. I’m sure you know much more than me and for sure the plugin is not perfect, no one is, but that’s my opinion as a normal user. Also I don’t want to promote the plugin, is not mine and I’m not related to it at all, but I wish this plugin to help yours with better progress.
And on the final, your plugin is fully compatible with my Theme, but because of everything what I wrote above, I switch to the new plugin and with few modifications by me, works correctly now with the Theme, so if you some day you make a similar behaivour in your plugin, I will more that happy to get back to it.
Thanks!
Thanks for your feedback. We apologize for any misunderstanding caused by our previous response. We understand that your concerns are important and we would like to address them in a helpful and respectful manner. Our intention was to compare the functionality and potential impact on loading speed of that plugin and WCBoost – Wishlist.
At the moment, we’re working on a new update for WCBoost – Wishlist that will focus on reducing unnecessary AJAX requests and improving overall performance.
In the meantime, please don’t hesitate to reach out if you have any further questions or suggestions. We’re always happy to hear from you!
Thank you!
Hello,
We have recently released a new version of the Wishlist plugin, which includes several improvements and fixes. One of the key updates is a solution to the issue you mentioned regarding the AJAX calls.
In the latest version, the AJAX request (
/?wc-ajax=get_wishlist_fragments
) has been optimized to only trigger one time for the first visit.Please update to the latest version of our plugin and let us know if this resolves the issue for you. If you encounter any further problems or need additional assistance, please feel free to reach out.
Thank you for your patience and support.
- You must be logged in to reply to this topic.