WordPress has been in our lives for over 16 years, yet the method of adding scripts to themes and plugins still remains a mystery for many developers. In this article we finally put the confusion to rest. Since it’s one of the most commonly used Javascript libraries, today we’re discussing how to add simple jQuery scripts to your WordPress themes …
WordPress 5.6 Will Ship With Another Major jQuery Change
WordPress 5.6 will ship with the latest jQuery library next month. This is a major update that all plugin and theme developers should begin testing against. Last week, Marius Jensen announced the change on the Make Core blog. The following jQuery-related libraries are expected to ship in the update (WordPress Trac ticket): jQuery 3.5.1 jQuery Migrate 3.3.2 jQuery UI 1.12.1 …
Enable jQuery Migrate Helper Plugin Passes 10K Active Installs
In just one week since WordPress 5.5 was released, the Enable jQuery Migrate Helper plugin has passed 10,000 active installs, as users look for a fix for broken sites. The plugin was developed by the WordPress Core team to mitigate jQuery-related problems users may face after updating to 5.5. WordPress has removed jQuery Migrate 1.4.1, but many themes and plugins …
Major jQuery Changes on the Way for WordPress 5.5 and Beyond
With all of the advancements made in JavaScript and newer, shinier frameworks, it is sometimes easy to forget that WordPress still relies on the aging jQuery library. The same holds true for thousands of plugins and themes in the official WordPress directories. For some, this may feel like a journey back to the mid-2000s, a time when JavaScript very much …
How to Defer Offscreen Images in WordPress With Lazy Loading
One of Google PageSpeed Insights performance suggestions is to defer offscreen images in WordPress with lazy loading. Lazy loading images in WordPress lowers the initial load time and page payload, without sacrificing content. Lazy loading improves your visitor’s experience, by serving only what your visitors need when they need it. It’s way more efficient than the load-all-the-images-just-in-case approach that results …
How to Use JavaScript in WordPress and Lose jQuery Bloat
jQuery has become ubiquitous on the web and in WordPress. Many of its components are in the WordPress core software, the admin uses it heavily, and it’s readily available for front-end use as well. We enqueue it without thought when we need it, but should we always do so? I tend to think not, and […] View original post at …
JavaScript for WordPress Developers: Getting Started With jQuery
jQuery is a popular open source JavaScript library that enables you to make websites interactive and create animations. It was designed to simplify the client-side scripting of HTML and is widely used, with installation on 65% of the top 10 million highest-trafficked sites on the web. This is the second post in our four-part series focusing on JavaScript for WordPress …
Is Replacing Default WordPress Scripts Like jQuery a Good Idea? (and How to Do It)
WordPress comes with a whole bunch of default scripts out-of-the-box that you can take advantage of to power your themes and plugins. jQuery is one commonly used script, as is TinyMCE. But what if you want to replace a built-in script with your own? We recently looked at how to add jQuery scripts properly to your install. WordPress uses the same mechanism …
How to Properly Add jQuery Scripts to WordPress
Despite the fact WordPress has been around for a while, and the method of adding scripts to themes and plugins has been the same for years, there is still some confusion around how exactly you’re supposed to add scripts. So let’s clear it up. Since jQuery is still the most commonly used Javascript framework, let’s take a look at how …