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

Conversation

wanderor
Copy link

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.

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.
@gijsk gijsk requested a review from cmkm September 26, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant