I've already lost many hours trying to do something I think it is impossible.
I have a script with a source to a website and that source is a simple link like:
<script type='text/javascript' src='http://ads1.qadabra.com/t?asdasdasdasd'></script>
This script only runs while the document is loading and all my efforts to try to run it after the document has loaded were ruined.
I wonder if I can place the src tag inside the document, will it run after the document has loaded? That script loads a banner from that website and I want to load it x seconds after the page has totally loaded.
Does anyone has a solution to this? I have already asked several questions about this issue in the past few days but I can't get to a solution :/
Thanks in advance!
This problem is the same as mine but does not offer good solutionshttps://forums.digitalpoint.com/threads/how-to-load-the-advertising-banner-code-after-the-website-has-been-fully-loaded.2286973/
$(document).ready(function(){});for jQuery wrap that around your code in the link so it will run when the document is ready..getScript()should do what you want. If you think it won't, you should explain why.