> We've been using similar architecture at Yahoo for many years now.
At all of Yahoo? I imagined such a big company would have a variety of front-end frameworks and patterns.
Re:Htmx Is the Future
by redonkulus on Friday May 05, 2023 @03:19PM
(#35833939)
Nope, not all. Yahoo homepage, News, Entertainment, Weather all use this architecture. Yahoo Mail uses a React/Reduct architecture on the client. Other Yahoo properties with more complex client-side UX requirements are using things like Svelte or React. It's not a one size fits all architecture at Yahoo, we let teams determine the right tools for the job.
> simple client-side library based on HTML decorations has worked really well for us
What library are you using?
Re:Htmx Is the Future
by redonkulus on Saturday May 06, 2023 @01:57AM
(#35838495)
We developed an internal library, but there are similar libraries in open source (although I can't remember their names).
We've moved back to an MPA structure with decorated markup to add interactivity like scroll views, fetching data, tabs and other common UX use cases. If you view the source on yahoo.com and look for "wafer," you can see some examples of how this works. It helps to avoid bundle size bloat from having to download and compile tons of JS for functionality to work.
For a more complex, data-driven site, I still think the SPA architecture or "islands" approach is ideal instead of MPA. For our largely static site, going full MPA with a simple client-side library based on HTML decorations has worked really well for us.