Control loading order of cross domain java scripts
<p>I'm working on a mobile web site wherein I pull in elements, using Xpath, from a parent site/domain and recreate them on a different domain. The trouble is that most of the elements that I pull in have inline styles attached by the Dojo JS framework. I tried removing these styles using this jQuery code</p>

<pre><code>$('#elementID').removeAttr('style');
</code></pre>

<p>and it seems to work fine while the page is loading but once the page finishes loading the Dojo scripts attach the inline styles again. I read <a href="http://stackoverflow.com/questions/19035/javascript-load-order">here</a> that cross-domain scripts are loaded after the scripts of the site itself. Nonetheless, is there any way to control the script loading order?</p>
