I am using some kind of external jQuery with $ (document) .ready () to insert advertisements after triggering a document event, for example:
$(document).ready( function() { $('#leaderboard').html("<strong>ad code</strong>"); });
This is to prevent the user interface from being blocked by slow loading of advertisements. So far, it works well.
Now I need to add a few more declarations, although our CMS system, it can not be part of an external JS file, so I wonder if I can use the event for the second document and insert it using the built-in script tag? If so, what will be the execution order of the external event of the JS document, or the first script?
javascript jquery html blocking advertising
Tom
source share