docsifyjs / docsifyjs/docsify

Support browser-level lazy-loading for images

オープン
#1,431 コメント 2 件 リアクション 1 件 担当者 1 名 @jhildenbiddle が担当を希望しています GitHub で見る
enhancement
主要言語
JavaScript
スター
31.5k
フォーク
5.8k
平均マージ
9日 8時間
マージ済み PR(30日)
2

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。