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
- When to use action hooks and plugins
- Simple ajax call not working in wordpress plugin
- JS Support Ticket – Auto create WP account
- How to show Recent Page instead of Post?
- WordPress performance – W3 Total Cache and memcached/APCu
- Remove Duplicator plugin from admin menu if not an administrator
- Input with spaces in Shortcode attributes overwritten by defaults
- Form isn’t inserting data into database with ajax plugin
- how to find and correct plugin query performance issues
- Add a custom form on the post-new.php admin page
- Removing customise fields during plugin uninstallation
- Correct way to perform non-cacheable DB query
- Edit Yoast SEO breadcrumbs output [closed]
- Translating long texts with html formatting
- How to put JQuery/Ajax inside shortcode?
- AJAX search posts and pages
- WordPress Ajax Posting from App
- How would I go about creating a user ranked post popularity page?
- Anonymous Postings
- __callStatic method handler passed to add_action causes bug in PHP
- Do widget options need to be escaped widget()?
- Is there any W3C compatible Share & Follow plugin?
- Does any one have Idea to get these functionalities with the plugin wp-multi-network
- Does using WP-cron make the site slower for the user?
- Using a custom plugin to capture input data via Ajax and PHP
- Disable woocommerce cookies and delete cart data automatically
- Ajax contact form widget plugin data not insert in database
- woocommerce_package_rates not fired when wordpress woocommerce accessed as non ajax
- Theme is Causing Ajax Conflicts for a plugin I cant identify it
- className not populating in custom block
- Why WordPress plugin url ajax doesn’t work?
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- Run plugins only on certain pages
- wordpress, search form using ajax
- jquery not calling php function
- page loading time of a cached page
- Search for categories
- Overide plugin files from child theme (/inc/ ) folder
- wp_generate_attachment_metadata is creating an empty array
- custom payment gateway in woocommerce failed to connect to remote api server
- Display encrypted content on my website
- AJAX in plugin wp_send_json() sending html
- Will Gutenberg Have a Negative Impact on Page Speed?
- Post category with counts been display like a menu
- Post custom Data value in The Events Calendar plugin [closed]
- Send reply with pre-prepared answers
- Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?
- Best place for if/else piece of code related to custom plugin?
- Save custom attributes of product in woocommerce
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- Calling an attribute from a plugin shortcode
- Best place for short bio,image and button [closed]
- Use of Templates in a Plugin
- Ajax call returning 0
- Ajax with plugins returns 0
- Why can’t I access my Intranet LDAPS with NADI?
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- Ajax fail and get 504 error
- External Domain on WordPress Multisite
- In the archive widget, how do I sort in between two years?
- Ajax Search Lite: Customize Autoscroll
- admin-ajax.php warning max input vars exceeded on layered pop plugins [closed]
- Customization API for plugin development
- Fromcraft Plugin On click submit button [closed]
- WordPress Integration with Google Groups
- Best place to load wp_ajax_the_ajax_hook action in plugin
- creating a custom shop page display on archive woocommerce
- jQuery.post not working within shortcode – WordPress Ajax
- Create tabs in admin options page from custom post type loop
- How to load wp_editor via AJAX
- Setup page on first login on multisite
- How can I inject options into an select tag inside the widget form?
- Init plugin again after ajax call finish
- polylang + category/tag custom language link
- Anspress Customization: How to show logged in user votes on a single answer?
- Custom wordpress Theme and Plugin repository
- Automatic Updates Individual Plugins Not Working
- How do I make a child theme I made POST through a 3rd party plugin?
- How create Group Blogs based on user created Groups
- Display wordpress post’s in popup?
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- Using AJAX to generate front end / viewer end pages
- Using color picker in plugin, does input attribute order matter?
- How to redirect users to their profile after they successfully edit their profile
- How to handle cookies from a WordPress plugin on a cached page?
- Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?
- Add ALT attribute to Pin It Button image to pass HTML5 validation
- date/time-picker and file upload (image) fields for custom fields (e.g. with more fields)
- Ajax : Call undefined function plugin_function() … can’t call any plugin function
- Getting Theme element into plugins page editor in wp admin
- wordpress file upload with ajax when site is ajaxyfi
- WordPress as web application base
- Post Comments with Ajax in WordPress
- AJAX search as you type? [duplicate]
- Customize The Events Calendar to Include an Option to Expand for More Events Listings