All Projects → shlomiassaf → lazy-jit

shlomiassaf / lazy-jit

Licence: MIT license
A small POC for lazy loading the compiler while using AOT compilation for the main bundle.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Lazy loading the compiler.

A small POC for lazy loading the compiler while using AOT compilation for the main bundle.

See the blog post this repo was built for.

Either:

  • Compile the app (npm run compile)
  • run it in a server (e.g: cd dist/client & http-server)
  • Open it in the browser

OR:

Then:

  • Open network tab on your dev-tools window.
  • Click on the Lazy menu.
  • See the compiler lazy load in the network tab
  • Click on the Add button to compile and instantiate a component on the fly.

On the right, the lazy loaded module, with the compiler bundled in. On the left, the main bundle, no compiler.

image

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].