core v0.6.0 Release Notes

Release Date: 2020-03-08 // almost 2 years ago
  • Server-Side Rendering (SSR) with Rehydration

    ๐ŸŒ In previous versions of Kweb, along with many other modern web frameworks, the HTML DOM is built from JavaScript instructions supplied by the server on initial page render.

    This has the advantage of being able to reuse the code that modifies the DOM after page render to also render the page itself.

    ๐Ÿ‘€ It has the significant disadvantage that search engines visiting the page won't see anything unless they support JavaScript which many don't, this isn't good from a Search Engine Optimization perspective.

    ๐Ÿš€ With this release, Kweb will render the page to HTML in the document body, then instrumenting this server-generated DOM with JavaScript as necessary, and this is achieved without any external change to Kweb's API (the "rehydration" of the DOM).

    โšก๏ธ As part of this change the initial Kweb HTML page is now rendered using JSoup, with the plugin mechanism updated and simplified to take advantage of this.

    ๐Ÿ‘€ See also: Rendering on the Web provides an explanation of SSR and Rehydration. The Kweb user manual will tell you everything you need to know about Kweb.