私はsystem.jsをいじっています(チュートリアルに使用するangular2に触発されました)が、最も些細なサンプルでも途方もなく悪いパフォーマンスが得られます。
たとえば、次のコードでは、ローカルで実行しているときに、2 番目 ( の前System.import
) と最後 ( app.js
) の console.log の間に 26000 ミリ秒 (!) の遅延があります (したがって、ネットワーク遅延はありません)。
index.html:
<!DOCTYPE html>
<html lang="en">
<head>
<title>System.js Sample</title>
<script>console.log("1: " + new Date().getTime());</script>
<script src="bower_components/system.js/dist/system.js"></script>
</head>
<body>
<script>
console.log('2: ' + new Date().getTime());
System.import('app.js');
</script>
</body>
</html>
App.js:
console.log('3: ' + new Date().getTime());
bower ("system.js": "~0.18.17") を介して最新の system.js バージョンをインストールし、残りのコードをすべて削除しました。それで、私は何を間違っていますか?