Zombieasynchronous加载多个JS文件

尝试僵尸几个小时,并兴奋的方式。 唯一的问题是,脚本似乎是asynchronous加载(这很酷),并按照它们下载的顺序(而不是按照“原始”HTML文件中提到的顺序)执行。 我会解释:

<head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.js"></script> <script>alert($('body'))</script> </head> 

http://jsfiddle.net/viebel/GWYEj/ – 下面的脚本加载jQuery并尝试使用它。 下载jQuery需要时间,但僵尸似乎在下载完成之前进入下一个脚本部分。 很显然,没有jQuery没有太多的意义(“身体”),因此我们得到以下错误:

 Zombie: GET http://jsfiddle.net/viebel/GWYEj/show/ Zombie: GET http://jsfiddle.net/viebel/GWYEj/show/ => 200 Zombie: GET http://jsfiddle.net/js/lib/mootools-core-1.4.4.js Zombie: GET http://code.jquery.com/jquery-1.7.1.js Zombie: GET http://jsfiddle.net/js/lib/mootools-core-1.4.4.js => 200 Zombie: Unexpected token } SyntaxError: Unexpected token } at Object._evaluate (/home/viebel/node_modules/zombie/lib/zombie/browser.coffee:136:28) in http://jsfiddle.net/viebel/GWYEj/show/:undefined:undefined<script> Zombie: GET http://code.jquery.com/jquery-1.7.1.js => 200 

在“常规”浏览器中,代码stream畅运行。 是的,我们知道node.js不是真正的客户端JavaScript,但是Zombie.js应该是,不是吗?

请协助我们做错了什么。