Lighthouse Performance Discrepancy (Incognito vs. Regular) for Built for Shopify App - LCP & Improvement

Hey @huykon225 - thanks for sharing the screenshot there.

Based on an “empty” loader that only runs authenticate.admin and the long “Waiting for server response” in prod, this seems like it may be infrastructure/TTFB-related (Fly) rather than a Polaris/App Bridge/Shopify library issue.

To confirm, I’d say adding Server‑Timing around authenticate.admin and then comparing TTFB vs content download in DevTools should confirm.

I can’t assist too much on my end with third party integrations, but just based on personal experience with Google Cloud, on Fly, you may want to check for cold starts/unpauses and see if your machines are set to auto-turn off based on low usage if that’s a possibility.

I’d also verify if your app and session store/DB are co-located in the same region since that can also sometimes affect performance.

I can’t go deep on Fly infrastructure from the Shopify side, but others here may be able to help if you share a HAR, response headers (including Server‑Timing), and the serving region. Alternatively, you can ask in our developer Slack as well if folks don’t respond here, I can DM you an invite if you’d like, just let me know!

1 Like

Hi @Alan_G

I also guess that is the Flyio infrastructure issue. My DB is located in the USA & I also public a machine in that region.

I’ve tried to add Server-Timing around the loader admin.authentication and this is the result:

I hope you can DM me to let me share my HAR file & would love to invite me to the developer Slack channel also.

Thank you very much for your time

Hey @huykon225 - happy to take a look at that HAR file - I can’t guarantee we’d be able to help directly from a Shopify perspective, but I can for sure take a look and see if I can offer some tips/assistance.

I’ll set up that DM right away here :slight_smile:

Thank you very much for your dedication

I could not find information on how to run an app in a headless mode. Could you please assist with it. I want to run my up in Lighthouse and not to load the Shopify wrapper, so I see clear numbers for my app only.

1 Like

@Vitalii Please read once again.