vue-lazy-hydration | Lazy Hydration of Server-Side Rendered Vuejs Components | Frontend Framework library
kandi X-RAY | vue-lazy-hydration Summary
kandi X-RAY | vue-lazy-hydration Summary
Lazy Hydration of Server-Side Rendered Vue.js Components. vue-lazy-hydration is a renderless Vue.js component to improve Estimated Input Latency and Time to Interactive of server-side rendered Vue.js applications. This can be achieved by using lazy hydration to delay the hydration of pre-rendered HTML.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Makes hydration .
- Creates an observer observer for the given options .
- Creates a hydration .
- Hydorate interaction events .
- Hydrates a drag - time loop when an item is idle .
- Decorate a view .
- Hydrates a component .
- Resolves a component to a component instance .
- Set a new component .
- Checks if a component instance is asynchronous .
vue-lazy-hydration Key Features
vue-lazy-hydration Examples and Code Snippets
Community Discussions
Trending Discussions on vue-lazy-hydration
QUESTION
When I'm using Lazy load with nuxt and components: true
For example
ANSWER
Answered 2021-Dec-07 at 16:09Here a tweet about the subject, recommending a v-if
on the component itself.
To make a recap on all of the 3 cases that you do have here:
- this one is by far the most optimal (
v-if
on component + Lazy) - this one is not the one recommended, meanwhile it works aswell (the component is loaded only the condition is met, you can inspect the network tab to be sure)
- here, the component will be loaded directly on the page (JS asked + parsed), just not mounted (worst possible case)
So, pretty much:
- you can
lazy
pretty much every component that you want to import, it's rarely a bad idea - prefer to apply
v-if
directly on the component - if you apply the
v-if
on the parent tag, Nuxt can somehow still achieve to make it work (double-check your network tab to be sure: build your app and inspect the JS loaded when thev-if
condition is met)
A browser is idle when there is nothing happening on the website (CPU-wise) as explained by this answer. This answer may also be useful IMO.
Also, I think that this idle is something totally different and unrelated.
PS: last time I checked Markus' project (vue-lazy-hydration), it wasn't compatible with Nuxt2.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vue-lazy-hydration
Specyfing ignored-props on Import Wrappers is not necessary anymore.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page