Shinyapp is super slow on deployment

My Shinyapp got super slow on deployment, but was running okay locally. What could be a possible reason for this? Is there a way I can increase the load and processing time? I have already tried optimizing time after analysis with Profvis.

Thanks much for the help...

Hi @shreya2105, is there anyway you can share the source code? Also, it would help to have more detailed information about what is slow (e.g., initial page load, certain interactions, etc) and by how much?

Hi @cpsievert , here's the link to the code:
It's not so slow while loading but while processing the data on the leaflet map, the app takes forever. And, the legend box with the leaflet map almost shows up a minute after.

Within the app, the data in dropdowns is reactive. It's stored in an observe function. That's slow even when run locally. Not sure, how I can speed up that process.

Please let me know if you have trouble accessing it.

I can't seem to the run the app with shiny::runGitHub() or shiny::runApp(). Are you missing a global script?

@cpsievert, my bad. I have added all the relevant files now on github. Would you please look again?

Now I see

Error: 'Melted/Party names.csv' does not exist in current working directory ('/Users/cpsievert/github/Shinyapps').

'Party name.csv' is there in the repository. I don't know why is it saying that. @cpsievert