Relying on JavaScript
<p>I've been tasked with creating an extremely heavy JavaScript site that of course must be backwards compatible as well as work on pad devices, dynamically resize, etc...</p>

<p>Does anyone have advice on how to help with the reliability of the code?  Currently, a lot happens when the DOM is ready.  E.g. graphics are scaled, click events are defined, etc...</p>

<p>However, if a file is slow or the user stops the load, the DOM ready doesn't always execute causing the images to not resize properly or some other Javascript function to execute.</p>

<p>Most times everything works flawlessly, but there are those odd times with network connectivity that cause a few "random" issues.</p>

<p>Would love to hear some thoughts on improving the reliability. </p>
