What is SSR? Internal Link

SSR, or Server-Side-Rendering, is a mechanism and set of conventions where an application or content is rendered with minimal work from the client.

With SSR, the client does not execute JavaScript. Instead, the client renders HTML/CSS which was "rendered" by the server.

Benefits of SSR Internal Link

A major benefit of SSR is that JavaScript is not required. Because of this, applications can be built to feel "lighter" in many use cases.

Additionally, SSR can be used as a fallback in the event that the user has JavaScript disabled. This way comment threads can still render, and the user can still reply to comments.

FastComments is already well optimized, so in most cases SSR is not required. However, some online communities have users which do not use JavaScript, or disabling it is the preferred practice. This is where FastComments SSR can be useful.

However, a major trade-off of SSR is having to reload the page for small state changes.

Use Cases Internal Link

Example use cases of SSR are as follows:

  • A fallback for when JavaScript is disabled.
  • To render a comment interface in an environment where JavaScript is not available or desired.
  • For sites or online communities where the inclusion of more JavaScript is not desired.

Where FastComments Uses SSR Internal Link

FastComments uses SSR in the following places:

  • Our WordPress plugin uses SSR as a fallback by default. If JavaScript is disabled, users can still comment on your blog.
  • We use it as a fallback on our own Blog!