question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Add lazy functionality to Progress components

See original GitHub issue

Problem to solve

There have been various reports of the Progress components spiking CPU in different scenarios.

Various reports:

#2324, #785, #720, #553

Progress components:

https://vuetifyjs.com/en/components/progress-circular https://vuetifyjs.com/en/components/progress-linear/

Proposed solution

A member of my team discovered that if you wrap these components with VLazy you can greatly reduce the performance impact - especially if multiple instances of Progress components exist on the page.

The proposed solution is to add a lazy prop to the Progress components that gives them lazy functionality (i.e. not rendering if not visible on the page).

This would be either by wrapping in VLazy or using the v-intersect directive - likely requiring a minimal change to the render function and an added prop of lazy.

https://vuetifyjs.com/en/components/lazy https://vuetifyjs.com/en/directives/intersect/

P.S. some kind of lazy directive would be cool but not sure if it’s feasible/wanted and would for sure have a namespace clash with v-lazy

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
KaelWDcommented, Dec 8, 2020

Yeah go ahead. This can be by default, doesn’t need a prop.

1reaction
KaelWDcommented, Dec 16, 2020

Don’t use VLazy, use the intersect directive to supply the transition only when the element is visible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lazy loading React components - LogRocket Blog
lazy () is a function that enables you to render a dynamic import as a regular component. Dynamic imports are a way of...
Read more >
Feature request - Lazy load content · Issue #8230 · angular ...
I have expansion panels that can have a lot of content, they sometimes take more than 500ms to render, that's a lot of...
Read more >
Lazy Loading with Suspense in React - Shortcut
To lazy load a component we just need to modify a regular import slightly: import SomeComponent from './SomeComponent';. Becomes: const ...
Read more >
Lazy Loading React Components With React.lazy & Suspense
lazy () is a React component that allows you to load components asynchronously. The React.lazy API is a new feature added to React...
Read more >
Feature request: Lazy load compatibility fix and Idea for plugin ...
Hi Enfold,. I have seen that Image Sourceset is in progress. Can I ask that client side lazy load is also added at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found