Skip to content

Commit 534c299

Browse files
committed
Only show LQIP on poor connections
1 parent 17c864e commit 534c299

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

_includes/css/components.page-head--masthead.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/isolated/components.page-head--masthead.scss

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,27 @@
4545
border-bottom-width: 0;
4646
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) inset;
4747

48+
.has-delivery-mode-lite & {
49+
background-image: url(/img/css/masthead-small-lqip.jpg), var(--base64);
50+
}
51+
4852
@include media-query(lap-and-up) {
49-
background-image: url(/img/css/masthead-medium.jpg), url(/img/css/masthead-medium-lqip.jpg), var(--base64);
53+
background-image: url(/img/css/masthead-medium.jpg), url(/img/css/masthead-medium-lqip.jpg), var(--base64);
54+
55+
.has-delivery-mode-lite & {
56+
background-image: url(/img/css/masthead-medium-lqip.jpg), var(--base64);
57+
}
58+
5059
}
5160

5261
@include media-query(desk) {
53-
background-image: url(/img/css/masthead-large.jpg), url(/img/css/masthead-large-lqip.jpg), var(--base64);
54-
view-transition-name: masthead;
62+
background-image: url(/img/css/masthead-large.jpg), url(/img/css/masthead-large-lqip.jpg), var(--base64);
63+
view-transition-name: masthead;
64+
65+
.has-delivery-mode-lite & {
66+
background-image: url(/img/css/masthead-large-lqip.jpg), var(--base64);
67+
}
68+
5569
}
5670

5771
> .wrapper { /* [2] */

0 commit comments

Comments
 (0)