mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-04-01 09:56:43 +00:00
29 lines
706 B
HTML
29 lines
706 B
HTML
<!DOCTYPE html>
|
|
<head>
|
|
<script>
|
|
let dyn1_loaded = 0;
|
|
function loadScript(src) {
|
|
const script = document.createElement('script');
|
|
script.src = src;
|
|
document.getElementsByTagName("head")[0].appendChild(script)
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<script src="../../testing.js"></script>
|
|
|
|
<script defer>
|
|
loadScript('inline_defer.js');
|
|
</script>
|
|
|
|
<script async>
|
|
loadScript('inline_defer.js');
|
|
</script>
|
|
|
|
<script id=inline_defer>
|
|
// inline script should ignore defer and async attributes. If we don't do
|
|
// this correctly, we'd end up in an infinite loop
|
|
// https://github.com/lightpanda-io/browser/issues/1014
|
|
testing.onload(() => testing.expectEqual(2, dyn1_loaded));
|
|
</script>
|