Skip to content

Commit 3cd5f6a

Browse files
committed
Add iframe experiment
1 parent 6a742b6 commit 3cd5f6a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

iframe.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!doctype html>
2+
<html lang=en-gb>
3+
<meta charset=utf-8>
4+
<meta name=viewport content="width=device-width, minimum-scale=1.0">
5+
6+
<title>preconecting iframes</title>
7+
8+
<link rel=preconnect href=https://harry.is>
9+
10+
<script>
11+
function longTask(ms) {
12+
const start = Date.now();
13+
while (Date.now() - start <= ms) { true }
14+
console.log('[Main] INP Long task complete.')
15+
}
16+
17+
longTask(1000);
18+
</script>
19+
20+
<h1><code>preconnecting</code> <code>iframe</code>s</h1>
21+
22+
<iframe src=https://harry.is/ loading=lazy></iframe>

0 commit comments

Comments
 (0)