The crude alternative most people resort to is the one where you add a file and include several levels up. This is arguably worse for performance if not just as bad.
But there is a variant that works better, if we create our own AJAX entrypoint URL, and specify:
define( 'SHORTINIT',true);
Then include the WordPress environment, we can skip over the majority of the loading process. This is the way to go if you want super zippy AJAX requests. The downside is that we have to load some things ourselves, and some steps of the loading process are never executed.
See this answer for more detail Ajax takes 10x as long as it should/could
Related Posts:
- Restricting a Plugin to Only Load its CSS and JS on Selected Pages?
- How can I measure the performance of any WordPress Plugin or Theme?
- How to Create a Custom Panel and Fields in Post Page [Plugin]
- Adding LOAD MORE on a page
- admin panel save option with ajax
- What’s the preferred method of writing AJAX-enabled plugins?
- Delete tables from database when deleting plugin
- Do Plugins effect site loading time?
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- Custom comment type maybe?
- Posts wont expire
- ‘Lazy loading’ list of posts with pagination
- How to include admin-ajax when loading external javascript
- plugin for wp_list_categories with posts
- How to get last_updated and newest_blogs in WP 3.0
- Replace existing pages with new pages, keep menu links
- WordPress web page struggling with performance
- How to create popup same as wordpress popup feature
- Will Flutter work with WordPress 3.0?
- Check if email address exists front end with AJAX in a plugin
- prettyPhoto media loading very slowly in Chrome
- WooCommerce get_price returning wrong price when used via ajax
- Theme is Causing Ajax Conflicts for a plugin I cant identify it
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- Search for categories
- Best place for short bio,image and button [closed]
- Automatic Updates Individual Plugins Not Working
- Display wordpress post’s in popup?
- Using color picker in plugin, does input attribute order matter?
- Ajax : Call undefined function plugin_function() … can’t call any plugin function
- WordPress as web application base
- URL rewrite of independent plugin?
- Plugin for users to create their own ads like Google Adsence
- How do I apply style to each category of a list?
- AJAX call – failling to call do_action
- What are the Best Practises When Using AJAX in Plugin Development?
- What is a reasonable memory limit for WordPress
- Does having more than 30 Admin Ajax affects site performance (plugin)?
- How can I run a custom shortcode function on a live site and only run if the viewer is a specific machine?
- How to display checked posts on another page over AJAX? (like comparasion style)
- Custom widget doesn’t save values from dropdown box
- Plugin function inside custom plugin
- Change the style of h1, h2, only in post entry
- where do I send my ajax calls
- Ajax save data to database on document ready, no data being saved
- How to get specific string/value from an array? php [closed]
- Super slow plugin page (lots of error 500)
- Custom API plugin to execute 3rd party API to retrieve data
- Customize Menu | Styling LESS/SCSS code formats
- shortcode – multiple instances of same parameter name in one shortcode instance
- How to create a plugin that includes all the other plugins?
- Why is it important to check for isset and is_array before checking in_array in this example?
- How Should Custom Functions Be Called For Single Posts?
- same user role or copy the user role to be same as the other role
- How to request admin-ajax.php correctly when wordpress URL and site URL are different?
- Passing PHP Variables to AJAX Loaded Pages
- Integrating Custom Database with WordPress
- Ajax request sends url rather than data
- grab or load text on demand
- How can I replace content on site generated from plugin without changing plugin
- Edit post image attributes on fly?
- admin-ajax.php 500 error when new users try to register
- Send Array from JS to php file then insert it in wp database through a plugin
- Profiling the initial PHP file, anyone, that get like 10 seconds to load
- Replace only the first CSS class
- Ultimate Members Default Post Layout problem
- Conditionally load public and admin code with AJAX working on both sides
- How to send custom mail when a user complete a specific form
- WordPress ajax error 400 bad request for sending data to remote site [duplicate]
- Get shortcode attribute for AJAX call
- Why can’t I call a function from inside my registered AJAX function?
- Echo custom admin field into a is_single()
- Manual Backup – How to save to Firefox or Chrome (instead of IE which brings up popup I can’t get rid of)
- WordPress Feedback popup with date saved into table
- Am I using an action hook correctly?
- Javascript not working
- Conditional required fields for WordPress Contact Form 7
- WordPress ajax not working in registration
- Replace code in plugin template
- ajax request not returning the result
- How do I convince this button to do something when it is clicked?
- Display_rows() and column_cb() strange behaviour
- Directory structure for plugin changes
- How can I pass value to function in add_menu_page?
- disable lightbox in a plugin [closed]
- Need Help Creating a Multi-Step, Video-Guided Enrollment Site
- User specific content (posts) / limiting visibility
- My AJAX API plugin isn’t working
- ajax sends data to plugin
- Remove the ‘Press This’ Tool
- How wordpress plugin hooks works? [duplicate]
- Selling Downloadable Products [closed]
- How to delete remain data in WP database after deleting custom post via admin interface
- Combining JS files to one script
- How can I modify the colors of my theme for a single section of my site? [closed]
- How to generate a responsive output from plugin?
- Need help saving input fields for Security Deposit plugin in WC Vendors page
- Jquery post responses 500 error after some time and lastly an 503 error
- How to Add Extra Text In WordPress Title Before Post Publish
- Select posts from list and add them in a new list