Just in time or JIT compiler is one which actually builds every time the content is requested. It is something which we use while we are developing an application. Although it is great but it has some shortcoming like the binding error in application get discovered during runtime, the package is huge and hence the site is slower to load etc.
- Compiled in the browser.
- Each file compiled separately.
- No need to build after changing your code and before reloading the browser page.
- Suitable for local development.
Ahead of Time or AOT compiler is one which compiles the code once and when a request for the content is received the pre compiled version is served. It is lighter in terms of code size and is fast.
- Faster rendering
- Fewer asynchronous requests
- Smaller Angular framework download size
- Detect template errors earlier
- Better security
0 comments:
Post a Comment