Articles on: Regios Discounts

Reducing JavaScript Load from Regios Automatic Discounts

If you notice a high number of JavaScript files being loaded by the Regios Automatic Discounts app embed, this is usually related to how the app detects your store’s theme.


By configuring a single setting, you can significantly reduce the number of scripts loaded and improve storefront performance.



Why This Happens


When the “Theme type” setting in the Discounts Embed is set to “Auto-detect theme”, the app needs to determine which Shopify theme your store is using.


To do this, it loads multiple configuration files (JS chunks). This can result in:

  • 20+ additional JavaScript requests
  • Increased page load time
  • Negative impact on Core Web Vitals



Set a Specific Theme Type

Instead of using auto-detection, manually specify your theme.

Steps:

  1. Go to Online Store → Themes in your Shopify admin
  2. Click Customize on your active theme
  3. Open App embeds
  4. Locate Discounts Embed (Regios Discounts)
  5. Find the “Theme type” setting
  6. Change it from “Auto-detect theme” to your actual theme (e.g., Dawn)
  7. Save your changes


What This Fix Does


  • Prevents the app from loading all theme configuration files
  • Reduces the number of JavaScript chunk files requested
  • Improves page load performance


Real-World Example


A merchant reported:

  • 27 JavaScript files loaded by the app embed
  • ~13% of total script requests coming from Regios

After setting the theme type to Dawn:

  • Extra chunk files were no longer loaded
  • Discount functionality remained fully intact
  • Storefront performance improved


Best Practices


  • Always set a specific Theme type if you know your theme
  • Use Auto-detect theme only if you’re unsure of your theme or during initial setup
  • Test changes on a duplicate (unpublished) theme before applying to your live store


Troubleshooting


If you’re unsure which theme to select:

  • Most Shopify stores use themes based on Dawn
  • You can confirm this by checking your theme’s code or documentation
  • Or contact Regios support for assistance


Need Help?

If you’d like us to review your store and optimize script loading, feel free to reach out to our support team. We’re happy to help.


Have any feedback for us?

We want to hear about your experience with our app! Leave a review on the Shopify App Store.

Updated on: 10/04/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!