Subscription long wait time until onReady

I have a performance issue with Meteor subscriptions, and the time taken from subscribing to the subscription to be ready.

I subscribe to three collections, and the subscription onReady events don’t get called until around 4 seconds later (they all take exactly the same time to return call onReady).

Logging on the server shows that the results are returned from the database in only a few milliseconds.

As far as I can see, I do not have any blocking code, and the timeline shows lots of idle time, so I don’t know what causes this long delay.

Any suggestions or gotchas appreciated.

Try another browser to rule out browser config like artificial network throttling.

How much data are you subscribing to? Maybe take a look at the [Meteor DDP Monitor Chrome Extension] (https://github.com/thebakeryio/meteor-ddp-monitor) or Kadira Debug, to see what’s happening behind the scenes.