You Really Don’t Need All that JavaScript, I Promise
- Not every SPA really needs to be an SPA; there are tons of legitimate reasons JS might not load, and you’re potentially causing unnecessary friction.
- The JS ecosystem is moving fast enough to cause developer fatigue, which is a price you mightn’t need to pay.
- Generally SPAs of this category are SPAs because they want more control over the page load cycle.
- HTML/CSS is smarter than ever, and things you might’ve needed JS for in the past don’t really need it anymore (like
datalists
. - The
portal
tag gives you control over the process of loading a new page, but: