我写了一个最小的测试页面来试用 Aurelia。
http://www.andrewgolightly.com/
GitHub:https ://github.com/magician11/ag-landingpage
我的最后一次测试显示,加载 135 个请求的页面需要 55 秒。
看来我需要先捆绑 jspm_packages 目录,以便立即下载 543KB .. 而不是分段下载。
所以鉴于我遵循了这个例子:http ://aurelia.io/get-started.html
如何捆绑包裹?我不清楚https://github.com/jspm/jspm-cli/wiki/Production-Workflows
然后在我的 index.html 文件中更新什么?而且我仍然需要包含 jspm_packages 文件夹,因为我在头部引用它,对吗?
<link rel="stylesheet" href="jspm_packages/github/twbs/bootstrap@3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="jspm_packages/npm/font-awesome@4.3.0/css/font-awesome.min.css">
谢谢。
更新
该团队正在努力捆绑..
来自 Rob Eisenberg:“我们还没有完成捆绑支持。我们正在努力。”