Gatsby static HTML slow in visual editor

Builder content link

Builder public api key

Detailed steps to reproduce the bug
I’m using a static site built with Gatsby to S3 that goes through CloudFront with a function to rewrite request URIs so index.html is at the end (for Gatsby support). Whenever I go to edit a page, the editor is incredibly slow. It takes several seconds to give me any feedback and then sometimes I can’t even click on elements to edit them.

If you try to add new blocks, I think you’ll see the response time is really not great.

Screenshots or video link

Code stack you are integrating Builder with
Gatsby → S3 + CloudFront

Reproducible code example
I think the site is set up nicely because if you go to it at it loads very quickly.