I think I have figured it out what's the problem. I changed html file a little bit. I removed body tag in html file and before
closing html tag I included this script(see attachment)
These js files now are loaded after page load.
I m still getting some errors in the browser's console:
1. Refused to set unsafe header "Content-Length"
2. dojo.js:15 Error: multipleDefine
but the ui works fine.
And in some cases if you want to append another handler after page load maybe you ll need to add this code again in your second handler.
script Widget{tagname = "script"};
script.setAttribute("src", "bootstap.min.js");
document.body.appendChild(script);
Hope this helps. I ll try to upload an example.
michaeldefox