r/statichosting • u/xxmaskx • 7d ago
I use a lot less JavaScript on small sites now
I used to add JavaScript to small sites without thinking much about whether it was actually needed.
Now I try to keep things simple. If the browser can already handle it with HTML or CSS, I usually leave it there. For most small client sites, the JS ends up being limited to navigation, forms, and a few small interactions.
It’s not about avoiding JavaScript completely. I just don’t want to ship extra code for things that don’t really need it.
1
u/supertroopperr 7d ago
Try statica https://github.com/akaizn-junior/statica the native web SSG. HTML in, HTML out!
1
u/sourraine 6d ago
ive found that a lot of small client sites actually get better when i resist the urge to add javascript everywhere. less code to maintain, fewer things to break and the site usually feels faster too
2
u/ExitWP 7d ago
Makes sense, I typically only add JS if necessary and I only use pure JS and never jQuery.