I’m currently developing a Shopify app using Polaris for the UI components, and I’m aiming to get the Largest Contentful Paint (LCP) under 2.5 seconds for optimal performance.
Does anyone have experience or tips on how to achieve this with Polaris? Specifically, I’m interested in:
- Optimizing Polaris Components: Any best practices for using Polaris components in a way that minimizes their impact on LCP?
- Code Splitting: How can I effectively split my code to ensure only essential components are loaded initially?
- Image Optimization: Are there any recommended tools or techniques to optimize images within Polaris components?
- Lazy Loading: Best practices for lazy loading non-critical assets?
- Shopify App Configuration: Any specific configurations or settings in the Shopify environment that can help improve LCP?