According to this report generated by GTmetrix

According to this report generated by GTmetrix the admin-ajax.php file and others are causing very slow loading speeds. Please advise.

https://gtmetrix.com/reports/astepx.com.s71735.gridserver.com/ou2P8PLA

Matt

  • Adam Czajczyk
    • Support Gorilla

    Hello Matt,

    I hope you're well today and thank you for your question!

    According to the test that you linked to and to some other tests that I performed on your site, the main bottleneck here is your server's response time. It's taking it nearly 20 seconds to respond (more or less, depending on a test).

    This affects wp-ajax.php and admin-ajax.php directly as AJAX is like a separate call to a server (kind of "site to another site" communication, basically). Therefore the main issue here is the server speed.

    I'm not familiar with your hosting provider or server config but I think the first thing to try would be to get in touch with host tech staff and ask them if they can investigate and improve that setup at least a bit. Factors such as: webserver/database query limits, memory limits assigned to PHP, the way the PHP is triggered (as a webserver module or FCGI module) - this all matters a lot.

    I'd also recommend setting up a cache (e.g. W3 Total Cache plugin) and implementing a CDN (such a e.g. CloudFlare). As a final step, it would be also good to optimize images on your site and our WP Smush Pro plugin will help you do this:

    https://premium.wpmudev.org/project/wp-smush-pro/

    Best regards,
    Adam

  • Matthew
    • Design Lord, Child of Thor

    I have spoken with my host, Media Temple, a few times today and they are pointing fingers at the theme because the server is running as usual and all my other sites are loading fine.

    Here are some of their notes...

    "It looks like the is not optimized and suffering from latency due to the site scripting and how it loads. I checked the server status and everything is running normally. You can look over this report: https://gtmetrix.com/reports/astepx.com.s71735.gridserver.com/usZSCcAJ
    and make the changes that is suggests to optimize the site.
    We also have an article that will help with compression. I am including a KnowledgeBase article in regard to this for reference below:
    https://mediatemple.net/community/products/grid/204643600/is-mod_gzip-installed-on- the-grid#gs"

    "I see in the report that I gave you earlier: https://gtmetrix.com/reports/astepx.com.s71735.gridserver.com/al6DZZ6Q
    that the initial connection to the server is taking about 7 secs to process. That seems to be because of the Link: <http://astepx.com.s71735.gridserver.com/wp-json/>; rel="https://api.w.org/"
    in the Header and there is also a get command taking up to 16 secs: admin-ajax.php.
    Check the waterfall report tab in that report I provided. It looks like there are WordPress links and external links causing the latency."

  • Adam Czajczyk
    • Support Gorilla

    Hello Matthew!

    Is there a compatibility issue with CoursePress and the Spirt theme?

    That's a bit more complex than this. Your host is pointing at Upfront's ajax calls and indeed Upfront is making a lot of them as well as it's making a heavy use of JavaScript. However, any AJAX call means a request made to the server and it seems that the server isn't able to handle those in a reasonable manner. Since Upfront themes are being used by many members of our community on different servers I can confirm that there are both blazing-fast instances and ones running a bit slower.

    I'm not trying to bounce the ball back here, just adding some more explanation :slight_smile:

    That said, there are advanced works on Upfront 1.0 as we speak. I'm not able to give you any ETA on release but it should be rolled out pretty soon. As to my knowledge apart of some nice new features there's a lot of improvements been made in terms of stability and performance so I hope this should fix the problem.

    Best regards,
    Adam

  • Matthew
    • Design Lord, Child of Thor

    Are you suggesting that Media Temple is not a capable host for the Upfront templates? Are there other hosts you would suggest? Or, how should I go about customizing CoursePress so that I can have sliders, customization tools and the other and common web page elements.

  • Predrag Dubajic
    • Support

    Hi Matthew,

    Upfront should work with Media Temple but it's possible that your specific plan is having issues with Upfront since I don't see any other complaints about Upfront not working on Media Temple servers.

    As Adam mentioned above we are working on some improvements for Upfront that would most likely help you with using upfront even with your current plan.

    Or, how should I go about customizing CoursePress so that I can have sliders, customization tools and the other and common web page elements.

    Depending on which changes you are looking to make, for sliders there are a lot of plugins that use shortcode that you can simply add anywhere in your page content, for example https://www.wonderplugin.com/wordpress-slider/ should work just fine.

    Is there anything specific you are looking to customize so we could provide you with some precise answers depending on changes you are looking for?

    Best regards,
    Predrag

  • Matthew
    • Design Lord, Child of Thor

    They are trying to upsell me on a server with SSD. Do you think this will resolve the very slow loading speeds? Here is our last exchange...

    (MT)
    The reason why I think it would benefit from SSD drives is simply because the wait time on the website appears to be long when running tests. This usually relates to the how the server is attempting to serve the page or any possible processes that are running when making a request. The overall website appears to be well optimized and the size of the requests are very small.

    (Me)
    Okay. So it's a problem with the server. Not the plugin.

    (MT)
    Not necessarily, I don't know what the plugin's role is on the website, but if it is processing something initially it could be creating a load on the server that is taking it a long time to serve the page.

  • Predrag Dubajic
    • Support

    Hi Matthew,

    SSD would probably show improvement in speed but before that I would suggest trying out the latest version of Upfront first, since your previous comment there were quite a few updates to Upfront, and a big one with 1.0.
    You should see how the latest version behaves on your site first.

    Best regards,
    Predrag

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.