Horrible performance
-
Following up this unsolved topic:
This is horrible, the plugin is refreshing a nonce by doing a background POST on every page load.
email-subscribers/lite/public/js/email-subscribers-public.js
$(document).ready(function () { // var submitButton = $('.es_subscription_form_submit'); $(document).on('submit', '.es_subscription_form', function (e) { e.preventDefault(); var form = $(this); handleBindFunction(form); }); let subscription_forms = $('.es_subscription_form'); // Check if page contains ES subscription form. if ( subscription_forms.length > 0 ) { let list_ids = []; jQuery(subscription_forms).find('input[name="lists[]"]').each(function(){ let list_id = $(this).val(); if ( ! isNaN( list_id ) ) { list_ids.push(list_id); } }); // Send an ajax request to get updated nonce value. jQuery.ajax({ type: 'POST', url: es_data.es_ajax_url, data: { action: 'ig_es_get_updated_subscription_data', list_ids: list_ids, },
Is it possible to avoid this, and instead doing it only once when they start filling the forms?
Right now this is a performance killer and it will kill any site with a decent amount of concurrent traffic. We will have to blacklist this plugin for our customers if this is never fixed..
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Horrible performance’ is closed to new replies.