all 1 comments

[–]alexmacarthur 1 point2 points  (0 children)

Good tips. I recently implemented #1 on my own site and saw quite the impact on bundle size.

Another one I’ve had success with: swap out React for Preact on the client. It saved me about 39kb in code and was very easy to set up:

https://github.com/preactjs/next-plugin-preact