news.volyx.in

It's time for modern CSS to kill the SPA (jonoalderson.com)

744 points by tambourine_man · 368 days ago · 492 comments on HN

Article summary

The article argues that modern CSS has made Single-Page Applications (SPAs) unnecessary for many websites, as native CSS transitions and other features can provide a seamless user experience without the need for client-side routing. The author claims that SPAs often introduce unnecessary complexity and performance issues. The article suggests using Multi-Page Applications (MPAs) with modern CSS features instead. This approach can provide a faster and more efficient user experience.

Main themes

  • SPAs vs MPAs
  • Modern CSS features
  • Web application performance
  • JavaScript usage
  • Framework necessity
  • Hybrid approaches
  • Web development best practices

What commenters say

  • Some commenters argue that SPAs are still necessary for complex web applications that require interactivity and real-time updates.
  • Others claim that MPAs with modern CSS features can provide a similar user experience to SPAs without the added complexity.
  • There is disagreement over whether frameworks like React and Next.js are necessary for building web applications, with some arguing that they introduce unnecessary bloat and others seeing them as essential tools.
  • Some commenters suggest that the choice between SPAs and MPAs depends on the specific needs of the website or application, and that a hybrid approach may be the best solution.
  • The use of HTMX and other libraries is proposed as a way to achieve a balance between the benefits of SPAs and the simplicity of MPAs.
  • The importance of optimizing website performance and reducing unnecessary complexity is emphasized by several commenters.
  • The role of JavaScript in web development is debated, with some arguing that it is overused and others seeing it as a essential tool for creating interactive web applications.