I have a site that contains several ad zones. Some are javascript includes, others are iframe includes. The javascript includes are placed right before our closing tag, and the iframes are scattered around the page.
Today, I was developing locally with no internet and noticed that my javascript inside of document.ready() doesn't run until all of these external assets are loaded or time-out. This exposes a vulnerability, because if an ad server goes down (out of my control), that could make the page unusable.
What are the best practices to work around this problem?