DEV Community

Discussion on: Dev.to is the perfect demonstration of how content-based web apps should be developed

Collapse
 
nickytonline profile image
Nick Taylor • Edited

This article might interest you Bigi. It talks about the frontend stack including InstantClick.

I wrote it before I started working at DEV and I believe it was my now co-worker @jacobherrington that integrated parts of that article into the DEV docs . Since starting at DEV I’ve also updated the docs related to the frontend, including webpacker 4 upgrades.

Other things that we do in the frontend to make things faster are leveraging service workers as well as dynamic imports. You can dynamic see imports in action in for example the onboarding process or the logged on feed.

In regards to reusable components, we use Preact components mainly for the logged on experience. The only exception to this I believe is search.

Something that I would like to experiment with during the next cooldown period or the following one is server-side rendering Preact components in a Rails app as it is possible. I put the question out on Twitter and the creator of Preact, @_developit chimed in that it was possible.

@ben also has some great posts about making DEV fast.

Thanks for showing DEV some love and looking forward to your next article! 👋🏻

Collapse
 
bigi profile image
Bigi Lui

Great links! Just finished reading the frontend brain dump, planning to read the others as well.

Thank you so much for using React/Preact in various modules of the site dispersed in different places, instead of a SPA. I believe this is the right way to go for content-based web apps. Too many tech startups default to React and SPA just because that's what everyone else is doing, and perhaps in some ways it's "easier" to just go full SPA when you already want to use React (for organizational and team-scaling reasons). When React modules are small and separate on a page, they are really snappy. When it's a SPA and entire pages changes, it feels way more sluggish than what you do with Instant Click and HTML outputs from server. I wish what you do is the standard across the web among content sites.