We have a large Enterprise application written in Ember. In our Production environment, a certain percentage of users are feeling slowness in our application loading. Upon adding some time metrics and investigating to see where the application is loading slow, I found that the Ember application’s domReady method is triggered after a heavy delay of say 20 to 30 secs.
As per this Application JS code, Ember is waiting for jQuery’s ready method to start routing the application.
I would like to know why this method is fired after so much delay of 20 - 30 seconds. Most of the times, the JS files are loaded from cache for the users who have reported this issue. If JS files are loaded from cache, why the ready method is taking such a long time?
Any help would be much appreciated.