• Hello,
    I want to ask, is there a way to have ajax functionality without calling admin-ajax.php?
    I have site with plugin that call admin-ajax.php to frontend, and admin-ajax.php is really make site slow… Because that plugin function is essential for my client site, it cant be change or uninstall it.

    If there is really no way to change admin-ajax.php with other ajax script, can someone tell me how to speed it up? I really don’t understand how the less than 10kb file can really slow to load, while the 180kb image in my client site is 4times faster to load..

    any ideas?

    Thanks!:)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Dion

    (@diondesigns)

    IMO one of the worst things ever done in WordPress was the creation of admin-ajax.php. Not only has it caused a number of security issues, using it causes site slowdowns and server issues because it loads all of WordPress (and its plugins) just to do a simple AJAX request. It’s not just loading a 10KB file…it’s loading a minimum of 9MB of PHP scripts as well as making several queries to your database. If you have a large number of plugins installed, admin-ajax.php could be loading as much as 50MB of PHP scripts and making dozens of datbase queries!

    If you want to speed up your site, you should either find a way to not use AJAX, or you should write your own custom AJAX handlers for each type of AJAX request you need.

    If you absolutely need WordPress functions in an AJAX request, then you will be forced to live with a sluggish WordPress application.

    Thread Starter crovinca

    (@crovinca)

    Hi, DionDesigns, thanks for replying my question. Eww, for just a file with 7,8kb, it already load 2-4s in my client site. That single file is loaded twice slowly than my client entire site! I can’t imagine if the size is 50mb… Well, i will try to find a way with this ajaxed feature.

    Thanks again! xoxo

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘admin-ajax.php alternative?’ is closed to new replies.