Google News
logo
Ionic - Interview Questions
What AOT and JIT and which is used by Ionic?
Since Ionic 1-3 are majorly dependent on Angular. The Compilation options that were available for Angular were available for Ionic too. I have mentioned them below.
 
* JIT stands for Just in Time compiler. It is a type of compilation where a compilation of the app happens in the browser at runtime.
* AOT stands for ahead of time compiler. It is a type of compilation that compiles the app at build time.
* If we just use ionic cordova build platform (android or ios) then it will be JIT if we use prod flag I, E ionic cordova build platform --prod then it will use AOT.

An app that is built with JIT is slow as compared to AOT. But compilation time required for AOT is more than JIT. So for a quick checks use JIT and for a final deployment use AOT.
Advertisement