Why does it take so long to deploy the Meteor site?

For a very simple application, my Meteor site takes 4.1s to start downloading the first byte of data. This is a very simple setup. Appropriate times, etc. (Taken from http://www.webpagetest.org ):

IP: 107.22.210.133 Location: Ashburn, VA Error/Status Code: 200 Start Offset: 0.121 s DNS Lookup: 64 ms Initial Connection: 56 ms Time to First Byte: 4164 ms Content Download: 247 ms Bytes In (downloaded): 0.9 KB Bytes Out (uploaded): 0.4 KB 

Is this because the Meteor is slow, or maybe there is a bottleneck in my code? Is there any way to determine this?

Thanks.

+6
source share
2 answers

This delay is a function of the time during which your subscriptions receive data from the server. If any of the document data that the client requires when loading the page is static, save it in unmanaged (unsynchronized) local collections so that it is available immediately when the page loads. See collections.meteor.com for a comparison of the loading times of data stored in an unmanaged and managed collection.

+5
source

According to webpagetest, this is:

time required for negotiating DNS, sockets and SSL + 100 ms.

I liked @ ram1's answer, but I would like to add that it is also due to the performance of your server. This amount of time is common in shared hosts. There are two workarounds: change your hosting or add a CDN service.

Also, this will help if you have less redirects.

You should make better use of the cache, and for Chrome users you can apply the preliminary settings .

0
source

All Articles