mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-23 02:47:07 +00:00
Move setTimeout to onload to make sure it doesn't fire too early.
This commit is contained in:
parent
2553fb5ca8
commit
452232cbcf
@ -15,14 +15,12 @@ function boom() {
|
|||||||
document.documentElement.removeAttribute("class");
|
document.documentElement.removeAttribute("class");
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(boom, 30);
|
|
||||||
|
|
||||||
]]></script>
|
]]></script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body onload="setTimeout(boom, 30);">
|
||||||
|
|
||||||
<div style="float: right;" id="div">Floated div</div>
|
<div style="float: right;" id="div">Floated div</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user