Very simple question.
If I have this:
<link id="lowtech" rel="stylesheet" type="text/css" href="css/lowtech.css" />
<script type="text/javascript" src="js/engine.js"></script>
Inside the engine.js I have
document.getElementById("lowtech");
Will that always work? Does the browser load DOM elements in a linear fashion every time? Is there some specification about this process?
Yes
The exception is when JS adds DOM elements. Since events can fire at different times, the instructions to add those elements can be run at different times.