5

I would like to see how my website reacts to a slow connection.

Is there a way I can limit express to responding with slow speeds or delays? I know I can implement setTimeout calls on paths, but what about static assets?

nem035
  • 34,790
  • 6
  • 87
  • 99
lonewarrior556
  • 3,917
  • 2
  • 26
  • 55

1 Answers1

13

As I've mentioned in the comments, modern browsers support network speed simulation (and much more). Doing any programatic latency faking within your app is not a good approach because network simulation is difficult, it's hard to do it reliably and you could end up polluting your code a lot.

You should use a browser to do this:

There are also many other tools and resources you can use:

Community
  • 1
  • 1
nem035
  • 34,790
  • 6
  • 87
  • 99