Slow Loading _dash-layout and _dash-dependencies

I have a dash app on an EC2. When going to the website it used to be reasonably fast, but now it’s taking much longer. When I “Inspect” and look at the “Network” tab, all the other resources like styles.css and bundle.js load within milliseconds, but _dash-layout and _dash-dependencies take about one minute. Does anyone have any ideas on why this is happening?

When you say “now it’s taking much longer”, are you comparing it to running elsewhere before moving to EC2? Or is there some other change you made?