Skip to content

Commit bf70e43

Browse files
committed
feat (polyfill): change ofi lib with lazysize plugin.
1 parent 99f1b78 commit bf70e43

26 files changed

+57
-152
lines changed

package-lock.json

Lines changed: 2 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"favicons": "^5.4.1",
5656
"lazysizes": "^5.1.0",
5757
"normalize-scss": "^7.0.1",
58-
"object-fit-images": "^3.2.4",
5958
"ora": "^3.4.0",
6059
"susy": "^2.2.14",
6160
"svgo": "^1.2.2",

src/conf-img/image-locations.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,22 @@
3232
"img_base": "img-200-200"
3333
}
3434
],
35+
"hero-img": [
36+
{
37+
"srcsets": [
38+
{
39+
"srcset": "",
40+
"size": "img-1024-400"
41+
},
42+
{
43+
"srcset": "2x",
44+
"size": "img-2048-800"
45+
}
46+
],
47+
"default_img": "default-2048-800.jpg",
48+
"img_base": "img-2048-800"
49+
}
50+
],
3551
"square": [
3652
{
3753
"srcsets": [

src/conf-img/image-sizes.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@
2020
"height": "200",
2121
"crop": true
2222
},
23+
"img-1024-400": {
24+
"width": "1024",
25+
"height": "400",
26+
"crop": true
27+
},
28+
"img-2048-800": {
29+
"width": "2048",
30+
"height": "800",
31+
"crop": true
32+
},
2333
"img-400-400": {
2434
"width": "400",
2535
"height": "400",

src/conf-img/tpl/hero-img.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<source data-srcset="%%img-1024-400%%, %%img-2048-800%% 2x" %%srcset%% />

src/img/sample/beasample-01.jpg

543 KB
Loading

src/img/sample/beasample-02.jpg

-88.7 KB
Binary file not shown.

src/img/sample/beasample-03.jpg

-76.8 KB
Binary file not shown.

src/img/sample/beasample-04.jpg

-117 KB
Binary file not shown.

src/img/sample/beasample-05.jpg

-112 KB
Binary file not shown.

0 commit comments

Comments
 (0)