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

Lazy load background images added via inline style attributes #1708

Merged
merged 20 commits into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
6191153
Disable loading of bg images not in initial viewport
ShyamGadde Nov 28, 2024
41fe3c3
Lazy load background images
ShyamGadde Nov 28, 2024
e29cb55
Refactor lazy-loading styles to inline implementation
ShyamGadde Nov 28, 2024
5b8b109
Lazy load bg images only when URL metrics for both mobile and desktop…
ShyamGadde Nov 28, 2024
3a50808
Merge branch 'trunk' into add/lazy-load-bg-images
ShyamGadde Nov 28, 2024
ce351c2
Avoid relying on `has-background` class for lazy-loading background i…
ShyamGadde Nov 29, 2024
66e9404
Simplify conditional check for viewport
ShyamGadde Nov 29, 2024
7943980
Move inline CSS to separate file
ShyamGadde Nov 29, 2024
a21dec4
Update Webpack config to minify CSS files
ShyamGadde Nov 29, 2024
12a268d
Update .gitignore to ignore minified CSS files
ShyamGadde Nov 29, 2024
6608a4e
Fix typo in comment for test case
ShyamGadde Nov 29, 2024
c9eb29f
Improve formatting of inline style tag
ShyamGadde Nov 29, 2024
e466d58
Remove unused variable in test case
ShyamGadde Nov 30, 2024
d02fc27
Add test cases for lazy loading background images
ShyamGadde Nov 30, 2024
d9b3b66
Move image_prioritizer_get_lazy_load_script to helper.php
westonruter Nov 30, 2024
2b75add
Combine script and style addition
westonruter Nov 30, 2024
4d70ad0
Rename previous lazy-load code now to be for video specifically
westonruter Nov 30, 2024
c1491ad
Add missing tests for lazy-load script/style functions
westonruter Nov 30, 2024
8ca87d3
Remove logic made obsolete by #1658
westonruter Nov 30, 2024
4cd8a5e
Update README with new lazy bgimage feature
westonruter Nov 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ nbproject/
build
.wp-env.override.json
*.min.js
*.min.css
*.asset.php

############
Expand Down
Loading
Loading