plugin-icon

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 …
Beoordelingen
5
Versie
1.0
Actieve installaties
100
Laatst bijgewerkt
Mar 9, 2021

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');
Gratisvoor betaalde abonnementen
Door te installeren, ga je akkoord met de Servicevoorwaarden van WordPress.com en de voorwaarden voor plugins van derden.
Getest tot
WordPress 5.6.17
Deze plugin kan worden gedownload, zodat je hem op je kan gebruiken.