(function(){
function md(str) {
var context = document
var fragment = context.createDocumentFragment()
var nodes = []
var scripts = []
var i = 0
var tmp = fragment.appendChild( context.createElement("div"));
tmp.insertAdjacentHTML('beforeend', str);
for (var i = 0; i < tmp.childNodes.length; i++) {
var node = tmp.childNodes[i];
if (node.tagName && node.tagName.toLowerCase() === 'script') {
var script = document.createElement('script');
if (node.type) {
script.type = node.type;
}
if (node.src) {
script.src = node.src;
} else {
script.text = node.text;
}
nodes[i] = script;
} else {
nodes[i] = node;
}
}
return nodes;
}
var nodes = md(" ".replace(/\t/g, '\n'))
var take = function(){
var node = nodes.shift()
if(nodes.length > 0){
if(node.tagName && node.tagName.toLowerCase() === 'script' && node.src){
node.addEventListener('load', take)
}else{
setTimeout(take, 0)
}
}
if ("body" == "body") {
document.body.appendChild(node);
return;
}
document.head.appendChild(node);
}
setTimeout(take, 0)
}())