4 ms·
Not that code-splitting is generally an issue with prototyping, but you can easily use native es6 modules straight from github (or npm) via services like jsdeli
by somishere 6y ago
Not that code-splitting is generally an issue with prototyping, but you can easily use native es6 modules straight from github (or npm) via services like jsdelivr.
e.g to load lodash's es6 defer module (targeting a specific commit): https://cdn.jsdelivr.net/gh/lodash/lodash@898b378f06/defer.js https://cdn.jsdelivr.net/gh/lodash/lodash@898b378f06/defer.j...
^^ to be used in an import statement or <script type="module">
[edit: example]