-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Add Image Prefetching for Click to expand Images #61107
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
Merged
luisherranz
merged 19 commits into
WordPress:trunk
from
Takshil-Kunadia:feature/prefetch-lightbox-images
Nov 4, 2025
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
fb96bda
Add image prefetching for lightbox images
Takshil-Kunadia 32de3cc
feat: add delay before prefetching
Takshil-Kunadia 1076bd9
docs: update docs
Takshil-Kunadia 4363f5f
fix: track prefetched images to avoid duplicate markup
Takshil-Kunadia a0ce109
docs: add context comments
Takshil-Kunadia 713eada
feat: implement responsive image preloading for lightbox images
Takshil-Kunadia d9a2e9f
refactor: rectify approach to accurate name
Takshil-Kunadia 95033e3
fix: remove URL validation
Takshil-Kunadia b55f573
refactor: relocate srcset assignment for better readability
Takshil-Kunadia 1101ecb
docs: add context comment
Takshil-Kunadia e9214c2
refactor: address PR feedback — use Map for preload timers, add prelo…
Takshil-Kunadia d6473eb
refactor: early return for already fetched images
Takshil-Kunadia 702e856
refactor: streamline state logic
Takshil-Kunadia 9fe6406
Revert "refactor: streamline state logic"
Takshil-Kunadia 6858b5e
fix: use dynamic lightboxSizes for imagesizes
Takshil-Kunadia e41fd23
refactor: use separate fns to extract common logic
Takshil-Kunadia e007c45
refactor: destructure image metadata parameter
Takshil-Kunadia a99e61e
refactor: remove redundant lightbox sizes logic
Takshil-Kunadia 1a33ec9
fix: reload tests
Takshil-Kunadia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
refactor: rectify approach to accurate name
- Loading branch information
commit d9a2e9fde669677396d2881a1dd2fe129933e0cb
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.