Skip to main content
Version: 3.x

Improve your Core Web Vitals

Improve your site's performance with Core Web Vitals. Learn how these key metrics impact user experience, page speed, and SEO. This guide provides actionable insights to optimize loading times, responsiveness, and visual stability for better rankings and engagement.

We will keep improving this page over time.

Resources

Front-Commerce tips

Mark above-the-fold images as priority

Using: <Image src="xxxx" priority />

Improve your fonts performance

One query per route

You must aim at One GraphQL query per Front-Commerce route. Keep additional queries for secondary content.

Ensure that this query is fetched in the loader route function from @remix-run/node (exemple here).

Promise.all()

When multiple API requests are required, using Promise.all() to fetch data in parallel rather than sequentially can significantly improve your website's loading performance. Fetching requests one after another increases total wait time, as each request depends on the previous one to complete. In contrast, Promise.all() executes them concurrently, reducing overall latency and making your application feel much faster and more responsive.

So, make sure to leverage it in your loader route functions or directly within your resolvers to optimize efficiency and enhance user experience.