Improve Rebuy Smart Cart load speed
By default, Shopify loads apps only after the main site has finished loading. This means Rebuy cannot run until the entire site is ready, causing delays of 3-4 seconds or more before features like Smart Cart, Widgets, Smart Search, Bundle Builder and others are available. Also to note on mobile devices, may also experience similar delays due to Shopify's app loading sequence.
Shopify’s infrastructure requires the main theme to fully load before apps like Rebuy are executed. While this delay cannot be entirely eliminated, it can be minimized by following best practices.
To speed up the process, you can install the Rebuy JS Script Tag in your theme and disable Rebuy JS through the Rebuy admin portal. Enabling this option adds the Rebuy script tag to your store’s theme.liquid file and prevents Rebuy from loading in the document header, ensuring faster load times.
This is a best practice for improving load times and delivering a seamless user experience. It will especially benefit key features like Smart Cart, Smart Search, and Merchandising Widgets, along with other Rebuy functionalities.
How to Install the Rebuy Script Tag and Disable Rebuy JS
Step 1: Log in to the Rebuy Admin Portal
Step 2: Navigate to the Settings Tab - Once logged in, go to the Settings tab on the left-hand side of the admin portal.
Step 3: Select "App Settings" - In the Settings section, find and click on App Settings.
Step 4: Enable Script Tag Installation and Disable Rebuy JS - On the App Settings page, look for the toggle labeled "Install Rebuy Script Tag and Disable Rebuy JS." Turn this toggle on to enable the script tag installation and disable Rebuy JS.
This setting now relies on the new Rebuy Connector App Embed Block on Shopify. Please ensure that the Rebuy Connector is enabled on your current theme. You can do that by navigating to the app embeds section of your Shopify settings and verifying that it is toggled on! However, activating both the Script Tag and App Embed concurrently can create redundancy, so it is important to choose only one method to optimize functionality.
Do not disable Rebuy JS before the script is active on your theme—or Rebuy features will not load.
The Rebuy Connector 🔄 may already be enabled in your settings if you had previously set it up during your onboarding process or when enabling a separate feature which requires it. We recommend you confirming this just to be certain that it is toggled on. You can do this by clicking the link on the settings as seen in the gif below.
Alternatively you can navigate to your Shopify settings > sales channels > online store > click "customize" on your live theme > click "app embeds" on the left-hand navigation > confirm that the Rebuy Connector is toggled on.
Secondary Install Option (Deprecated)
The second option you have is to manually inserting this into your theme. In your theme's theme.liquid file, add the following script tag before the closing body tag.
<script async src="https://cdn.rebuyengine.com/onsite/js/rebuy.js?shop={{ shop.permanent_domain }}"></script>
“Paste the script right before the closing </body> tag in theme.liquid.”
When using this method you will want to turn off Rebuy Connector in Shopify.
After saving your theme changes, open your site, right-click → Inspect → check the “Network” or “Sources” tab in DevTools to confirm rebuy.js is loading from the CDN.
Removing jQuery from your settings to increase site speed
Removing jQuery from Rebuy.js, its impact on performance, and how to disable it for improving load times. To do so, you can simply go to App Settings and toggle the jQuery option to "No." New merchants as of September 1, 2025 will have jQuery disabled by default. Check out our article to learn more about jQuery and How It Affects Your Store.
Step 1: Log in to the Rebuy Admin Portal
Step 2: Navigate to the Settings Tab - Once logged in, go to the Settings tab on the left-hand side of the admin portal.
Step 3: Select "App Settings" - In the Settings section, find and click on App Settings.
Step 4: Disable jQuery - In the App Settings page, find the option for jQuery and toggle it to "No." This will disable jQuery and help improve load times if you don't require it for custom code or templates.
FAQs
How can I make Rebuy load faster on my store?
To speed up Rebuy, you can install the Rebuy JS Script Tag and disable Rebuy JS through the Rebuy admin portal. This will ensure that Rebuy loads earlier in the page lifecycle, minimizing delays for features like Smart Cart and Smart Search. You can also disable jQuery (if not required by your store).
How do I transition from the Rebuy Shopify app connector to using the async JavaScript script in my theme without experiencing any disruption?
To avoid any interruptions, follow this sequence:
First, add the async JS script directly to your theme file.
Then, make sure the JS toggle is ON in the Rebuy admin (this ensures Rebuy’s JavaScript still runs on your site).
Once you’ve confirmed the script is live and functioning, you can safely disable the Rebuy app connector in your Shopify admin.
✅ As long as the async script is added to your theme before disabling the Rebuy connector, there will be no downtime or disruption in Rebuy’s functionality.




