Optimize ES6 Module Loader Polyfill
This commit makes the ES6 module loader polyfill use Web Workers, so that Babel doesn't block the browser from animating. It also uses localStorage to cache the compiled results, only recompiling on source changes, so it makes loading faster while developing noVNC. This includes a vendored copy of the ES6 module loader, modified as described above.
This commit is contained in:
3
vnc.html
3
vnc.html
@@ -322,8 +322,7 @@
|
||||
</audio>
|
||||
|
||||
<!-- begin scripts -->
|
||||
<script src="node_modules/browser-es-module-loader/dist/babel-browser-build.js"></script>
|
||||
<script src="node_modules/browser-es-module-loader/dist/browser-es-module-loader.js"></script>
|
||||
<script src="vendor/browser-es-module-loader/dist/browser-es-module-loader.js"></script>
|
||||
<script type="module" src="app/ui.js"></script>
|
||||
<!-- end scripts -->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user