Introducing my new personal site, a static SPA built without a framework š
Ben Holmes
Posted on July 7, 2020
Visit the site to boost my SEO āØ
Check out the repo to see how I tackled this challenge šØāš»
After months of over-engineering and nitpicky designing, I'm excited (and relieved) to show off this baby to the world š
This was a much more difficult undertaking than it may seem, or even needed to be. Rather than using a sexy static site generator like Hugo or Gatsby, I challenged myself to pull off...
ā Static page generation for quick page loads
ā Client-side routing for that single page app (SPA) feel
ā Progressive enhancement so the entire site still works without JS enabled
ā Page transitions for added spice
... all without frameworks or component libraries.
I still leaned on a couple libraries like SCSS and Pug templating to make my life a little easier. But in the end, it's just a bunch of vanilla JS, a build script, and some probably bad practices keeping this thing together.
So why did you kill yourself reinventing the wheel?
Well, to be honest, I was tired of sitting on the shoulders of giants to build feature-rich, hyper-optimized websites. It's so easy to get lost in the docs of your favorite framework that you forget all the fundamentals actually tying everything together. Plus, it was nice to tackle all of these problems on my own, since now I don't have to check back on someone else's framework in a year to see what breaking changes I need to fix!
I also had that naive thought of "how hard can it be?" that I just couldn't shake. Answer: extremely hard. Please don't try this at home unless you have some time and a healthy dose of insanity on your hands š¬
Needless to say, this was an absolutely incredible learning experience on how all of these concepts actually work under the hood. And now, I'm ready to share all my learnings with you. I just posted my first major takeaway from this experiment which you can find below. More entries soon to come!
Posted on July 7, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.