X
224203

Ticket #224203 Public [Closed]

admin-ajax.php still executed for cal_init_nonajax=”yes”

I am using the following shortcode:

[add_eventon_list cal_init_nonajax=”yes”]

In Chrome devtools I still see admin-ajax.php is called on load.

I disabled all other plugins, the error is still there.

BY: Christian Brugger - Feb 27,2021 AT 11:28AM - 2 years ago
    • By: Artem Feb 28,2021 AT 2:24PM - Posted 2 years ago - #224356

      Hello,

      Thank you for your messages, I am going to assign this ticket to Ashan and he will be able to take it from here and find you a solution. Please allow some time for him to get back to you, we greatly appreciate your patience and thank you for being a eventon customer! Also please disable any IP blocking on your site if there are any.

    • By: Ashan Perera Mar 1,2021 AT 4:55PM - Posted 2 years ago - #224583

      Hello Christian this initial call loads some necessary text and parameter values for the calendar interaction. Is this causing load time on your site? what is your reasoning for wanting this stopped? 

      This is where the ajax call is run.

      You could comment out line 138 and stop it.

    • By: Christian Brugger Mar 2,2021 AT 12:45AM - Posted 2 years ago - #224623

      Thank you Ashan for your thorough answer. Indeed I want to disable it, because to reduce load times. I reported not because I absolutely need it, but more because it seemed like a bug.

      Based on the description of that option it sounded like that would stop. Enabling or disabling it didn’t change anything in terms of AJAX requests / responses.

    • By: Basilis Kanonidis Mar 3,2021 AT 1:30PM - Posted 2 years ago - #224954

      Hey Christian,

      As you seem to know what you are talking about, I would suggest switching the function to be more on an async option, that could help a lot more eventually.

    • By: Ashan Perera Mar 4,2021 AT 10:49AM - Posted 2 years ago - #225133

      Christian did you say commenting that line did not stop ajax from running? I have tested it out and it work perfectly.

      I will see if we can add an option to disable this if calendar is not using ajax. But it get little tricky because sometimes ppl use several calendars on the page and if one of those use ajax we still need to run this. Anyways more improvements on this to come 🙂

    • By: Christian Brugger Mar 5,2021 AT 12:25AM - Posted 2 years ago - #225268

      Thanks for coming back on this Ashan 🙂

      Disabling the line of code indeed stops the request.

      Basically what you write was my expectation. I was expecting that if I disable AJAX on all my calendar, this would disable also this request. I wasn’t aware that it was a global request. Thanks for clarifying. And I would appreciate such a change that you propose, as I don’t like touching code, because it needs to be re-done on every update, and people might forget.

    • By: Basilis Kanonidis Mar 7,2021 AT 12:02PM - Posted 2 years ago - #225621

      Hi Christian,

      Thank you for all the suggestions they are much appreciated!

      If you have a moment, we would greatly appreciate if you could kindly leave us a review at codecanyon! from your account > downloads. Cheers!

You must login to reply to this ticket

HelpDesk

Welcome to EventON helpdesk.

EventON is the #1 Best selling event calendar plugin for WordPress websites in envato marketplace.

Checkout EventON