Ajax called on every page load
-
/wp-admin/admin-ajax.php is called on every page load with form data : ig_es_get_updated_subscription_nonce
Is there a way to only call this ajax nonce on the pages where the EMail subscription is located? This extra call is causing a “Page View” count on my Host even though the Page is Fully Cached in Cloudflare. This in turn is causing the host to possibly increase my plan. This is fine on the page(s) where the users need to subscribe to our blog but not on every single page if possible.
I’ve noticed in the Javascript “email-subscribers-public.js” the ajax is only called if the class “.es_subscription_form” exists. This class exists on Every page. I would like to have it only exist on the actual page/pages where the Subscriber form is located. Is this possible?
Currently on version 4.6.7.
Thanks
Dana
- The topic ‘Ajax called on every page load’ is closed to new replies.