DEV Community

Discussion on: How my website works

Collapse
 
gypsydave5 profile image
David Wickes

This is definitely the way ahead Chris. You should have a series of service workers prefetching your site as markdown and then rendering the HTML as you scroll down the page. Anything else isn't using enough JavaScript to be professional.

In fact, you should serve the entire site up as a wasm file including all the markdown and CSS inline. Use Webpack to chunk this appropriately. That way you can have your whole website loading whenever anyone visits your blog so that the page transistions will be lightning fast.

To optimize for SEO remember to serve the same content statically from your server whenever it gets crawled though. You're already doing this so that should be easy.

Collapse
 
easrng profile image
easrng • Edited

isn't using enough JavaScript to be professional

This is simply never true. There is no minimum amount of JS required. You usually can get by with just CSS.