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:
- 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.
- Make sure your Nuxt app is progressively enhanced for server-side rendering (SSR) or static site generation (SSG).
- 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.