More like: you add some javascript library and now the browser needs 5 seconds to run 10 MB of javascript.
You can still support millions of these requests per second if you just bake all of the dependencies directly in a small OS running on your fastest raspberry pi.