I recently built AI Search with 0 frameworks and dependencies (please don't hate because of the word AI)
For comparison, similar sites are a lot heavier (not criticizing anyone here)
phind.com = 1.09MB
you.com = 1.3MB
aisearch.vip = 0.035MB
I still find the ~1MB of other sites to be ok, but 35kB is the smallest I've ever made a full SPA and that's simply because every single letter in the code is specifically made for this one and only site (and uses vanilla everything)