Skip to content

Commit 94d2bd9

Browse files
committed
Merge branch 'main' into refactor/adapting-script-name
2 parents d737de9 + 7b3e2a7 commit 94d2bd9

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

demo/iframe.html

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<title>iframe content</title>
8-
</head>
9-
<body>
10-
<h1>iframe content</h1>
11-
<p>iframe demo content from the same domain</p>
12-
</body>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>iframe content</title>
8+
</head>
9+
10+
<body>
11+
<h1>iframe content</h1>
12+
<p>iframe demo content from the same domain</p>
13+
</body>
1314
</html>

demo/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,24 @@
1717
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
1818
"Segoe UI Symbol";
1919
}
20+
2021
.scrolling-advice span {
2122
display: block;
2223
text-align: center;
2324
margin-top: 1rem;
2425
font-size: 2rem;
2526
}
27+
2628
/* Defing the header to be two screen sizes height at minimum to ensure that the images within the main section are being loaded lazy */
2729
body > header {
2830
min-height: 200vh;
2931
}
32+
3033
body > main img,
3134
body > main iframe {
3235
margin: 1rem;
3336
}
37+
3438
/* dynamically added images */
3539
.add-dynamic-content ~ div {
3640
min-height: 200vh;
@@ -56,6 +60,7 @@
5660
crossorigin="anonymous"
5761
></script>
5862
</head>
63+
5964
<body>
6065
<header>
6166
<h1>
@@ -129,7 +134,7 @@ <h1>
129134
"doesn't support the native loading lazy capabilities"
130135
);
131136
}
132-
</script></strong
137+
</script> </strong
133138
>)
134139
<span aria-hidden="true"></span>
135140
</p>

0 commit comments

Comments
 (0)