vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.49k stars 4.77k forks source link

Support for lazy loading images by default #2593

Open JessicaSachs opened 4 years ago

JessicaSachs commented 4 years ago

Feature request

I want native support for lazy loading images based on IntersectionObserver. I've seen requests for this feature and 3rd party plugin support elsewhere and think the Vuepress experience would benefit from it.

What problem does this feature solve?

What does the proposed API look like?

How should this be implemented in your opinion?

For lazy loading, we should use IntersectionObserver. This should be a plugin that is turned on by default.

Are you willing to work on this yourself?

Yes

tolking commented 4 years ago

reference: vuepress-plugin-img-lazy