I need to fire a script as soon as the page content (the whole HTML element) has been received, but it doesn't have to be rendered yet.
I assume that just having a simple <script>
tag that executes some code at the very top of my page should do the trick?
To formulate the question differently: does DOM ready mean that all elements and resources have been pulled and rendered?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…