by pmontra · 3y ago · 0 comments
or also any web app.
In a Rails app I recently started working on for a customer I saw many controller actions starting with a call to a method called simulate_delay_for_development. I checked the code and when run in development mode it basically sleeps for a random value between 0.1 and 3.0 seconds.
I'm sure that there are gems for that or proxy servers sitting between the browser and the server, but it's a cheap and effective way to make every developer experience delays with zero installation costs.
Chrome can also throttle the CPU power: https://www.wikihow.com/Throttle-Your-Browser-for-Testing