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

Automatically detect images "above the fold" and avoid lazyloading them on every page

Đang mở
#622 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
php, wordpress
Lĩnh vực
frontend, performance

Hướng nghiên cứu

Bắt đầu bằng cách xem xét cài đặt loại trừ lazyload hiện có theo từng trang và việc phát hiện hình ảnh hero được đề cập trong issue. Công việc hoàn tất khi các hình ảnh above-the-fold hoặc hero được xác định theo từng trang và thiết bị, được loại trừ khỏi lazyloading, đồng thời hành vi cần thiết được ghi lại.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

doc-needed new feature
What problem does this address?

Edit(VB): For PRF I recommend implementing it the way user and Marius suggested below to reduce complexity - setting per device let's say, i.e. have a different value for mobile/desktop/tablet, tweak this setting depending on the page.

Currently, you can exclude a certain amount of images from Optimole's lazyload feature per page (defaults to 3). However, the amount of images above the fold often varies per pages, and when this happens, it only betters the performances of the pages which has an amount of above the fold images match that number.

What is your proposed solution?

At the very least, avoid lazyloading images that are detected as hero images (seems like hero image detection is already a feature from version 3.9.0). At best, use a system similar to LiteSpeed cache's VPI feature, like so:

image

Will this feature require documentation? (Optional)

Yes, it requires documentation.

Ngôn ngữ chính
PHP
Star
73
Fork
14
Merge trung bình
2 ngày 12 giờ
Pull request đã merge (30 ngày)
18

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 Codeinwp/optimole-wp

Tất cả issue của Codeinwp/optimole-wp

Issue tương tự

Thêm issue về PHP

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.