Shiny app loading time locally vs. when deployed on remote server

I'm trying to understand exactly why it takes 1.38 seconds to load jquery.dataTables.min.js when I visit my Shiny app that's deployed on a remote server vs. 5.7 milliseconds when I run the same Shiny app locally. I get those numbers by looking at the Developer Console Network tab in Chrome.

This is just one example, but there are many javascript and CSS scripts that are taking much longer to load when accessing my Shiny app remotely. What is going on here? What can I do to speed it up?

Cross posted on StackOverflow: r - Shiny app loading time locally vs. when deployed on remote server - Stack Overflow