define([ 'less!/customize/src/less/loading.less' ], function () { var urlArgs = window.location.href.replace(/^.*\?([^\?]*)$/, function (all, x) { return x; }); var elem = document.createElement('div'); elem.setAttribute('id', 'loading'); elem.innerHTML = [ '
', '', '
', '', '
', '

', '
' ].join(''); var intr; var append = function () { if (!document.body) { return; } clearInterval(intr); document.body.appendChild(elem); }; intr = setInterval(append, 100); append(); });