Hey folks, I need your help, I’m running a meteor app on my test server and it always takes a while for the initial load.
First some background. I’m using pm2 to deploy my Meteor app to my server. The deployment script creates a production build from the Meteor source and runs it with pm2. The app is behind a nginx proxy and connects to a mLab database.
Now whenever the app is accessed for the first time (loading without local cache) it takes a few seconds.
Here is the timeline for the inital app load:
And this is the timeline on the second time. As you can see the js file is now loaded from the disk cache.
Do you know how to speed up the load times for both cases?
Have you got some fancy nginx config that may help?
Thanks for any kind of help.