This topic has 2 replies, 2 voices, and was last updated 2 years, 2 months ago ago by Rose Tyler
Hello,
Please check screenshot on private. There are a lot of admin-ajax requests called, and some of them are duplicates.
Please let me know how to remove some of them and only leave the necessary.
Hello,
1/ Please read this article first – https://wpmudev.com/blog/using-ajax-with-wordpress/
admin-ajax requests are requests which are created in theme or plugins for time-delay loading some content or loading it only in some user actions (click/hover)
2/ you may have a few admin-ajax requests which are used for fully different cases. Example:
Loading of product variations
if you have a preselected variation it will trigger admin-ajax action which will be at once called to switch product image (or product gallery)
ajax loading of some widgets
To find the real “parent” of those requests you may disable one-by-one plugins and check the page on your testing page -> gtmetrix. Also, I wrote above all cases which are in use for ajax-requests functionality.
Regards
Tagged: admin-ajax, ajax, duplicates, json, requests, templates, woocommerce, wordpress
The issue related to '‘A lot of admin-ajax requests, some of them duplicates’' has been successfully resolved, and the topic is now closed for further responses