javascript - Delay/defer document.write from an external script till after document ready -


i have external script loads advertisements. script being loaded includes calls document.write. problem delays doc ready site. delay showing until after doc ready.

currently tried wrapping function loads external content in jquery doc ready, page blows up. goes white screen ad , code showing.

obviously because document.write running after page loaded. know way around or how delay loading of external content till after doc ready?

you try hack override document.write , buffer output, write div in doc ready.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -