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
$('#elementID').removeAttr('style');
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 here that cross-domain scripts are loaded after the scripts of the site itself. Nonetheless, is there any way to control the script loading order?