Skip to content

Commit dba518b

Browse files
committed
async run to ensure position is static
1 parent b51260a commit dba518b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

index.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,18 @@
7272
return reader;
7373
}
7474
</script>
75-
75+
<script>
76+
[
77+
['https://hypothes.is/embed.js', true],
78+
['document.body.style.position = "static";', false],
79+
].forEach(function(arg) {
80+
let [src, urlQ] = arg;
81+
var script = document.createElement('script');
82+
script[(urlQ ? "src" : "text")] = src;
83+
script.async = false
84+
document.head.appendChild(script);
85+
});
86+
</script>
7687
<!-- <script src="https://hypothes.is/embed.js" async></script> -->
7788

7889
</head>

0 commit comments

Comments
 (0)