While doing some optimization to speed things up I found admin-ajax.php adding significant wait time to page loads. I disabled its usage on the front end in WordPress, but the issue persisted. Using GTMetrix it looks like EventON is the source of the issue.
Jan 21,2021 AT 2:13PM - 2 years ago -Hi Ron,
Thanks for reaching out!
The admin-ajax request is used to load calendar default values that are used later on the webpage. To fix this, I can suggest adding cal_init_nonajax=”yes” to your shortcode to load the calendar without AJAX.
In case you would like to completely block the loading of this script on the front end, please comment out the following line in the plugin source code:
I hope this helps!
I tried to add a shortcode cal_init_nonajax=”yes” to the views of my daily and weekly calendars
https://bali.live/today/
https://bali.live/this-week/
And it completely changed to look of the calendars. Just completely different design. So, this tip does not work.
Due to the shear number of events you may wish to hide past events- that will increase loading time especially on that weekly view- thats a lot of events
also the login you gave is to a different site than the bali site
This recipe is not working!!! I added this code
cal_init_nonajax=”yes”
to my shortcode.
And this is how the weekly view looked without code: https://bali.live/this-week/
And this is how the weekly view looks with this code: https://bali.live/this-week-with-code/
Isn’t it different???
So how many events is okay? 2 events per day? 3 events per day? Why don’t you write about the limitations for your plugin when you sell it to your customers?
the number of events is based on the quality of the server. you have 118 events here https://bali.live/this-week/ but it doesn’t take that long to load considering the number of events
if you gave us wp-admin access to https://bali.live/ instead of burnslake.ca we may be able to tweak the settings to have it run faster
the good news is we are trying to save milliseconds in most cases https://gtmetrix.com/reports/bali.live/82eb8l2G/ but if we have wp-admin access to bali live then I can have a detailed look at your set up
various things such as turning off google maps JS, as your events don’t seem to use that feature- that will take away some miliseconds and there are other settings to look for, removing the jitsi API or turning it off rather will reduce things