Title: admin-ajax.php alternative?
Last modified: August 30, 2016

---

# admin-ajax.php alternative?

 *  [crovinca](https://wordpress.org/support/users/crovinca/)
 * (@crovinca)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/admin-ajaxphp-alternative/)
 * 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](https://wordpress.org/support/users/diondesigns/)
 * (@diondesigns)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/admin-ajaxphp-alternative/#post-6648783)
 * 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](https://wordpress.org/support/users/crovinca/)
 * (@crovinca)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/admin-ajaxphp-alternative/#post-6648998)
 * 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.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [crovinca](https://wordpress.org/support/users/crovinca/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/admin-ajaxphp-alternative/#post-6648998)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
