Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Support browser-level lazy-loading for images

Đang mở
#1,431 2 bình luận 1 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 8 ngày

@jhildenbiddle đang làm issue này rồi.

Từ ngày 16/6/2024.

  • #1432 của @sy-records — đã đóng, không merge

Đánh giá

Issue này chưa được đánh giá.

Mô tả

enhancement

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.

Ngôn ngữ chính
JavaScript
Star
31.5k
Fork
5.8k
Merge trung bình
7 ngày 18 giờ
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của docsifyjs/docsify

Tất cả issue của docsifyjs/docsify

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.