This document explains the recent removal of jQuery from Rebuy.js components, highlighting the performance improvements and how it affects new and existing installations. It also provides guidance on how to disable jQuery for merchants who don't require it, helping to reduce load times and optimize site performance.
What is jQuery?
jQuery is a popular, fast, and lightweight JavaScript library used to simplify the process of interacting with HTML documents, handling events, creating animations, and managing AJAX requests. It was widely used for ensuring compatibility across different web browsers and providing easy-to-use methods for common JavaScript tasks.
Have We Removed jQuery?
Yes! After an extensive review, we've officially removed the jQuery dependency from our core Rebuy.js components. This change was made to improve performance, reduce load times, and make the platform more modern and efficient.
What Does This Change Mean for You?
New Installations: Starting with this release, all new installations will have jQuery disabled by default. This will help reduce the overall page load size and improve performance for merchants who don’t rely on jQuery.
Existing Installations: For existing installations, jQuery will still be enabled by default. However, if you are not using jQuery through custom code or templates, you can toggle it off in the App Settings. Turning jQuery off will save in load size, which can help speed up your site.
Async Loading: jQuery is now loaded as a separate, asynchronous API process (
vendor-jquery
). This ensures that jQuery is only loaded when needed, which improves the overall performance and reduces unnecessary resources being loaded.
How to Disable jQuery
If you're an existing merchant and want to disable jQuery, simply go to App Settings and toggle the jQuery option to "No." New merchants will have jQuery disabled by default.
Why Is This Important?
Disabling jQuery can lead to faster page loads and a cleaner, more optimized site. If your site doesn’t require jQuery, turning it off will save bandwidth and improve your site's performance.