Consindering the following simple example, I wonder why CSS3 transition effect is not triggered when using DOMContentLoaded? Using window.onload or document.onreadystatechange = "complete" will work!
I know that DOMContentLoaded does not wait for [style] but in that case i dont reference external stylesheets!
The most DomReady-Engines will fall back to DOMContentLoaded if supported! Maybe someone has some ideas or information about this issue for me! Thank you in advance!
EXAMPLE:
<!DOCTYPE html>
<html>
<head>
<script>
window.document.addEventListener('DOMContentLoaded', function() {
var elem = window.document.getElementById('box1');
elem.style.height = '400px';
elem.style.transition = "height 1s ease-in";
}, false);
</script>
</head>
<body>
<div id="box1" style="display:block; background-color:green; position:absolute; width:400px; height:100px;" >Doesn't animate in IE, Opera, Chrome etc.. but often in FIREFOX</div>
</body>
</html>