Hello a have an add that is loaded with a simple script tag:
<script src="http://...(external)" type="text/javascript" language="Javascript">
It contains something like :
document.write('...(some html code)');
The problem is that this script execution is blocking. In the case that the ad domain is not reachable, the page containing this add is only displayed, once the timeout is reached.
I tried to load the script asynchronously with <script async
and with <script defer
, but this keeps the content from being added.
Is there a way I can change this script to be loaded in a non-blocking way ?
Or is the way the ad provider uses (document.write
) just evil ?