You can user the library Requirejs.
To use it, simply download it and include it in your index.html, replacing Static/js with the folder where your Avascripts are:
<script data-main="static/js/main" src="static/js/require.js"></script>
In this example, there would be a main.js file, which would be responsible for importing all other files using Requirejs.
Then you should import your example.js file into main.js:
// main.js
require(['exemplo'], function() {
});
In the file where you need external javascript, just do something like this:
// exemplo.js
require(['http://360popunder.com/5feaf8db752a6f16f5f860f0bc7c60.js?wkid=xxx&wid=xxx&k=xxx&traffic=0&cap=10&cid=downloads', 'outro_arquivo_necessário'], function(){
// Toda sua lógica aqui dentro
});
Any questions, or if it doesn’t work for you, you can leave a comment that we tried to find out why.
I suggest you read the Requirejs documentation if you choose to use it.
The name of the tb file changes?
– Sam
Why doesn’t this . js load directly on your website? Access is blocked?
– Sam