This week WordPress published this post on the make.wordpress.org blog recommending against using jQuery in WP Themes. If you have been following our blog we have cited several reasons for the need to migrate away from jQuery and which page builders heavily rely on jquery.
The number 1 reason cited is performance issues and it is important to understand what performance issues they are talking about. The performance metric described is the LCP which is the largest content-ful paint . This is the same metric which Google recommends for SEO results.
I have to admit that jQuery is simple and easy to use. What you can achieve in 2-3 lines of code, in React it takes a full 20-30 lines of code. Although creating complex logic is easier in react vs jQuery but it ultimately depends on your architecture not the front end script.
Now, the same recommendation can also be applied on Plugins. Majority plugins at the moment use jQuery, in WordPress when you enqueue jQuery you also enqueue the jQuery, jQuery – migrate. Popular plugins like BeaverBuilder, Elementor, Divi, use jQuery as their main script powering attractive features. If you are using Drag drop feature using jQuery like popular plugins LearnPress, Learndash etc. then you also enqueue tons of jQuery scripts from jquery-ui,jquery-ui-sortable,jquery-ui-draggable (created in 2007). I doubt if majority sites currently using WordPress would they be able to migrate away from jQuery, even WooCommerce uses jQuery.
Disclaimer : Self Advertisement : WPLMS is one of the very few themes which come with the No Jquery mode. This was added in verison 4 when we shifted our framework to reactJs 17 (released 2020) and Progressive web apps framework.
we have been