How to Remove jQuery From WordPress Safely (No Plugin)
Most tutorials that show you how to remove jquery from wordpress give you a reckless three-line wp deregister script( 'jquery' ) snippet that silently breaks the moment a contact form, lightbox, or WooCommerce cart script expects window.jQuery to exist.