Remove jQuery from Theme
Removes jQuery from your frontend theme if no administrator is logged-in. jQuery will still be loaded and continue to work in you backend and when the …
The facts
- Rating
- 5★ from 1
- Active installs
- 100+
- Price
- Free
- Last updated
- 9 Mar 2021
- Added
- Mar 2021
- Requires WP
- 5.0
- Tested up to
- WP 5.6.19
- Downloads
- 2,653
Our analysis
AI-assistedRemove jQuery from Theme is a WordPress plugin that disables jQuery on the frontend of your site when no administrator is logged in. It allows jQuery to remain active in the backend and when the admin toolbar is visible, ensuring that plugins dependent on jQuery are not loaded for regular users.
This plugin is suitable for users who want to enhance site performance by removing jQuery for non-admin visitors, particularly if their theme or site does not require it for frontend functionality.
Best for: This plugin is best for WordPress site owners looking to improve frontend performance by removing jQuery for non-admin users.
What it does well
- ✓Disables jQuery for non-admin users
- ✓Maintains jQuery functionality in the backend
- ✓Simple functionality focused solely on jQuery removal
Where it falls short
- •Limited information on compatibility with themes and plugins
- •Only tested up to WordPress version 5.6.19
Verdict
Remove jQuery from Theme offers a straightforward solution for disabling jQuery on the frontend, but its limited compatibility information may be a concern for some users.
From the developer
Marc Tönsing's own description of Remove jQuery from Theme, lightly tidied.
Removes jQuery from your frontend theme if no administrator is logged-in. jQuery will continue to work in you backend and when the admin toolbar is visible. Plugins which depend on jQuery will not be loaded either.
This plugin does nothing more but this:
function init_without_jquery() {
if (!is_admin() AND !is_admin_bar_showing()) {
wp_deregister_script('jquery');
wp_register_script('jquery', false);
}
}
add_action('init', 'init_without_jquery');