tom-ai / sophia-website

Portfolio website for Sophia, a viola and violin session musician based in Manchester, UK.
https://www.sophiadignam.co.uk
1 stars 1 forks source link

Optimize the site speed #36

Open tom-ai opened 5 months ago

tom-ai commented 5 months ago

I am noticing slow page loading times. Time to First Byte and FCP etc. (Proper testing is difficult as I am away from computer).

Currently the server builds files on every request (SSR), but I think the load times could be improved by statically generating the html and css on each build, and serving them directly on each request.

At least for components like nav, headers and footer that don't change much.

Bear in mind:

Raise PR and we'll do some A/B testing.

tom-ai commented 4 months ago

Also look at caching the data responses. This is more difficult with GraphQL but the DatoCMS docs have information.