- Code: Select all
<script src="very_big_script.js" runon="load"/>
It is currently Sat Dec 02, 2017 4:16 pm Advanced search
<script src="very_big_script.js" runon="load"/>
if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", init, false);
}
$(document).ready(function() {
//Statement 1
//Statement 2
})
//Other script code or markup
$(document).ready(function() {
//Statement 3
//Statement 4
})
$(document).ready(function() {
very_big_function();
})
-- http://www.whatwg.org/specs/web-apps/cu ... op-parsingHTML5 wrote:The user agent must then fire a simple event called DOMContentLoaded at the Document.
PMB9 wrote:I do like to have a runon="load" attribute...
Return to Feedback on the Specs
Users browsing this forum: No registered users and 0 guests