docsifyjs / docsifyjs/docsify

Support browser-level lazy-loading for images

Abierto
#1,431 2 comentarios 1 reacción 1 asignado Reclamado por @jhildenbiddle Ver en GitHub
enhancement
Lenguaje dominante
JavaScript
Estrellas
31.5k
Forks
5.8k
Merge medio
9 d 8 h
PR fusionados (30 d)
2

Descripción

## 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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.