seajs/seajs — Issue #168: 异步加载seajs后，seajs.config必须紧接着写成inline script
Author: lifesinger
Created: 2012-03-06 07:01:38+00:00
State: open

from https://groups.google.com/forum/#!topic/seajs/u_zUQXHKWGA

````
;(function(m, o, d, u, l, a, r) {
if(m[d]) return;
function f(n, t) { return function() { r.push(n, arguments); return t; } }
m[d] = a = { args: (r = []), config: f(0, a), use: f(1, a) };
m.define = f(2);
u = o.createElement('script');
u.id = d + 'node';
u.src = 'http://127.0.0.1/v4/js/lib/sea.js';
l = o.getElementsByTagName('head')[0];
l.insertBefore(u, l.firstChild);
})(window, document, 'seajs');
````

````
seajs.use('a'); //引用的127.0.0.1文件
seajs.config({
base:'http://www.test.com/'
});
seajs.use('b'); //引用test.com的文件
````

seajs似乎是按照先进先出整的？
这样导致异步加载seajs，必须把config紧接着inline script写，不能把config写到其他文件进行异步加载。

建议把config的执行优先级提高。