More Premium Hugo Themes Premium Nuxt Themes

Nuxt Delay Hydration

Delayed hydration for progressively enhanced apps. Reduced blocking time and improved Google Lighthouse scores.

Nuxt Delay Hydration

Delayed hydration for progressively enhanced apps. Reduced blocking time and improved Google Lighthouse scores.

Author Avatar Theme by harlan-zw
Github Stars Github Stars: 402
Last Commit Last Commit: Sep 7, 2024 -
First Commit Created: Dec 18, 2023 -
Nuxt Delay Hydration screenshot

Overview:

The Nuxt Delay Hydration module is a technique used to trick Google Lighthouse into thinking a website is faster than it actually is. It is designed for progressively enhanced websites and may not provide any significant performance or SEO benefit. By delaying hydration, it is possible to improve the Google Lighthouse score by reducing the “Blocking Time” metric. It is important to note that this is a hacky solution and should be used with caution.

Features:

  • Reduce your site’s “Blocking Time”
  • Per-page level configuration using route rules
  • Optional replay of pre-hydration clicks

Installation:

To install the Nuxt Delay Hydration module, follow these steps:

  1. If you are using Nuxt 2.x, please refer to the documentation on the v0 branch, as Nuxt 2 is deprecated and no longer supported.
  2. Make sure your Nuxt app is progressively enhanced for server-side rendering (SSR) or static site generation (SSG).
  3. Note that the module will not run in development unless you have enabled debug.

Summary:

The Nuxt Delay Hydration module is a tool used to improve the Google Lighthouse score of a website by reducing the “Blocking Time” metric. It tricks Google into thinking the site is faster than it actually is by delaying hydration. This module should only be used for progressively enhanced websites and may not provide any real performance or SEO benefit. It is important to use this module with caution and consider alternative solutions in the long term.