Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance detection of lazy image #910

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Commits on Sep 21, 2024

  1. Enhance detection of lazy image

    This code change:
    - Enhances detection of lazy image to support Wechat web pages. It also covers herald sun in original test data.
    - Adds a new overwriteImgSrc option to allow caller to overwrite img src with data-src more aggressively.
    - Refactors _fixLazyImages() to smaller functions to reduce duplicated and inconsistent logics.
    wanderor committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    82f8e56 View commit details
    Browse the repository at this point in the history
  2. Fix lint errors

    wanderor committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    97d7d6a View commit details
    Browse the repository at this point in the history