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 …
Votações
5
Versão
1.0
Instalações ativas
100
Última atualização
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');
Gratuitoem planos pagos
Ao instalar, você concorda com os Termos de Serviço do WordPress.com e com os Termos do plugin de terceiros.
Testado até
WordPress 5.6.17
Esse plugin está disponível para download para o seu .