docsifyjs / docsifyjs/docsify

Support browser-level lazy-loading for images

Aperta
#1,431 2 commenti 1 reazione 1 assegnatario Rivendicata da @jhildenbiddle Vedi su GitHub
enhancement
Lingua principale
JavaScript
Stelle
31.5k
Fork
5.8k
Merge medio
9g 8h
PR unite (30g)
2

Descrizione

## Feature request
Support lazy-loading images
Reference: https://web.dev/browser-level-image-lazy-loading/

#### What problem does this feature solve?

For pages with many images, instead of loading all the images, using lazy-loading will allow the browser fetch images on demand.

#### What does the proposed API look like?
I think we can expose an lazy loading option, or enable it by default.

#### How should this be implemented in your opinion?
Add `loading=lazy` to `img` tags.

#### Are you willing to work on this yourself?
Not sure where to change.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.