Maybe this has changed, but ad scripts used document.write(), which runs immediately (before onLoad or etc). A big reason they are slow.