'Is there a way to simulate / slow down asset loading in Rails?
I want to test a site in Rails as if it had a very slow internet connection, the js loads in 10 seconds after the page for example.
Is there a way to slow down the url for this for example:
<%= javascript_include_tag 'application' %>
All Google results cover slow load page times and how to speed them up, I'm finding it quite hard to Google how to do this.
Solution 1:[1]
On what device?
Simulate the situation I would say.
Connect the device to your phone as a hotspot and then choose the lowest speed on your phone for that device.
Visit ( GET ) via opera browser on vpn that is far from your location and secured, this slows down dramatically.
Visit your website via Tor browser
Do the 3 above at the same time.
Bonus: Go to starbucks, get the wi-fi connection and go sit as far as possible with losing basic connection.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Kim Van Rompay |
