Skip to content

Commit 1acfa50

Browse files
committed
chore: made this part more clear
1 parent 58e7e0d commit 1acfa50

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

demo/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,22 @@ let addDynamicContent = (event) => {
77
iframeElement = document.createElement('iframe');
88

99
imageElement.setAttribute('is', 'loading-image');
10+
// We're using a differing string at the end of the query than the regular one embedded directly into the page
1011
imageElement.setAttribute(
1112
'src',
12-
'img/lazyimg-src-loadinglazy.250x150.guetzli.jpg?loading=lazy&image-width=250&image-height=150&dynamic'
13+
'img/lazyimg-src-loadinglazy.250x150.guetzli.jpg?loading=lazy&image-width=250&image-height=150&dynamic-example-query'
1314
);
1415
imageElement.setAttribute('loading', 'lazy');
1516
imageElement.setAttribute('alt', '..');
1617
imageElement.setAttribute('width', '250');
1718
imageElement.setAttribute('height', '150');
1819

1920
iframeElement.setAttribute('is', 'loading-iframe');
20-
iframeElement.setAttribute('src', 'iframe.html?loading=lazy&dynamic');
21+
// We're using a differing string at the end of the query than the regular one embedded directly into the page
22+
iframeElement.setAttribute(
23+
'src',
24+
'iframe.html?loading=lazy&dynamic-example-query'
25+
);
2126
iframeElement.setAttribute('loading', 'lazy');
2227
iframeElement.setAttribute('title', '..');
2328
iframeElement.setAttribute('width', '320');

0 commit comments

Comments
 (0)