Store loading slow due to some shopify builtin script getting timeout

Topic summary

Store pages were loading slowly due to a timeout on a Shopify Shop Pay request (shop.app/pay/hop). A screenshot showed the stalled network call. It was clarified that shop.app is a Shopify-owned domain tied to Shop Pay (accelerated checkout), not a third-party app.

Suggested troubleshooting focused on preventing Shop Pay scripts from blocking non-checkout pages and isolating the trigger:

  • Limit Shop Pay elements (e.g., , data-shop-pay) to product/checkout pages.
  • Check if any app injects Shop Pay globally; disable apps temporarily to test.
  • Lazy-load the Shop Pay script so it runs after main content. A code snippet to defer loading was provided.
  • General performance clean-up (image lazy-loading, remove unused JS, reduce heavy sliders/animations).

Follow-up: Disabling all apps didn’t help; the initiator appeared as I18n.tsx (a localization file), suggesting the timeout wasn’t app-related.

Resolution: The root cause was DNS configuration. Switching to Cloudflare DNS eliminated the timeouts and restored performance. No Shopify-side code change was needed.

Status: Resolved. Key takeaway: Network/DNS issues can manifest as third-party script timeouts; verify DNS before deep theme/app refactors. Images and a defer-load code example were central to the discussion.

Summarized with AI on December 11. AI used: gpt-5.

Store loading slow due to some shopify builtin script getting timeout : https://shop.app/pay/hop?analytics_trace_id=fac07f35-b815-4a58-ba80-eaa4d1a73b59&target_origin=https%3A%2F%2Fwww.supergo.in&client_handle=abc.myshopify.com

This causing lot of trouble, the website is very slow.

How to fix this?

2 Likes

@sakibanda this looks like some app link for analytics, I recommend to contact that app support, you may need to remove this line from the code

Dont think so https://shop.app/ is owned by shopify, should be Shopify Shop App

Yes its shopify own domain

@sakibanda then I would recommend to ask shopify support to know the exact reason why this code is added and if it not mandatory to run the store, remove it.

Hii,
I checked the screenshot and the timeout request you’re seeing (shop.app/pay/hop) is related to Shop Pay script. This script loads automatically for stores that have Shop Pay enabled, so you can’t remove it but you can prevent it from slowing down the rest of your page.You can do few things like:

Make sure Shop Pay is not being loaded on pages where it’s not needed

Shop Pay scripts don’t need to run on: Collection pages, Home page, Blogs, General content pages
If you’ve added any custom app, mini-cart, or product card code that triggers Shop Pay buttons everywhere, it can force the script to load too early and cause timeouts.

Check the theme files for something like
or
data-shop-pay

If you find these inserted inside product cards or recommended product sliders, move them so they only load on product pages.

Check whether any app is injecting the Shop Pay script globally

Some upsell/cart/drawer apps auto inject the Shop Pay script across the entire store.

You can test this quickly: Disable the app temporarily, Refresh the page in Incognito, See if the timeout disappears

Lazy-load built-in payment scripts

You can wrap payment scripts so they load after the main page content.

This will not break Shop Pay but ensures it loads after the page is visible.

Improve the rest of the site’s loading so the timeout doesn’t impact the score

Even if the Shop Pay hop request is slow, you can reduce the page’s overall load time by optimizing: Images (lazy-load large banners), Removing unused JS from apps, Minimizing heavy sliders & animations, Reducing above-the-fold content
Also, if you ever need an automated solution, You can also take a look into the Website Speedy App that helps optimize stores by lazy-loading scripts, reducing JS execution, and improving LCP/FCP significantly without changing your design.

Thanks for the detailed reply, i tried troubleshooting, disabled all the apps but still this error is there. Seems its not because of any app. Something shopify has to fix.

Actually the initiator is I18n.tsx:148 which I think is localization file, not sure why this is causing issue.

Solved it, actually its my DNS settings issue changed to cloudflare DNS, sorry for the trouble. thank you guys.

1 Like