shlomiassaf / lazy-jit

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

Home Page:https://shlomiassaf.github.io/lazy-jit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://shlomiassaf.github.io/lazy-jit

License:MIT License


Languages

Language:TypeScript 61.6%Language:JavaScript 26.7%Language:CSS 6.7%Language:HTML 5.1%