© Alex Libby 2021
A. LibbyGatsby E-Commercehttps://doi.org/10.1007/978-1-4842-6692-2_9

9. Testing and Optimization

Alex Libby1  
(1)
RUGBY, UK
 

Until now, we’ve focused on building our site, and it appears to be working satisfactorily – is this really the case, though?

Does it function as we expect, or are there any tweaks we need to perform? Over these pages, we will explore how to perform unit testing and begin to optimize our pages. This process will have a particular focus on e-commerce - we will explore some of the steps we should take to test and optimize our site, and ensure it works as expected before release.

At the same time, we will perform an audit, with the Lighthouse tool, to see if there are any areas of the site we can optimize. We may ...

Get Gatsby E-Commerce: A Practical Introduction to Creating E-Commerce Sites with the Gatsby Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.