For example, I want to load my CSS stylesheet and essential images before loading Javascript. How can I do this? The only way that I can think of is using a body onload.