I have an app and something weird is happening. When I click a button, there is a noticeable delay in something happening i.e., my state is transitioned quite late and I can see the lag. The scope and root scope take time to render but the js code executes. I checked via a js timer.
It is happening only in one state. Perhaps the template is taking time in compiling. So, is there a way to pre-fetch or pre-compile the template? I know ionic is doing that but can I speed it up? And does ng-include causes any delay?