Some further information on this:
1. If I load the shiny application in a web browser, close it down, then reload the application from the same web browser, it loads much quicker the second time.
2. If I increase the CPU of the DO droplet, the initial load time improves a little, but is still not as fast as the second load time in 1. above, even with a smaller DO droplet. Hence, I have not increased the CPU size of the droplet.
3. Hence, it seems to be related to some sort of initial variable/package loading that is stored for a short period, making the second load time (as in 1. above) faster.
Does anyone have any ideas how to work out what is making the initial load time slow?
Thanks.