Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulate varying latency for network request in Chrome

Is it possible to simulate changing network latencies (within a range) for different requests via chrome?

E.g. for testing what happens when the order of ajax responses differs.

like image 601
Nick Russler Avatar asked Jun 28 '18 12:06

Nick Russler


Video Answer


1 Answers

DevTools technical writer here. We have network throttling in the Network panel:

Network Throttling

But that creates a steady throttled state. As of Chrome 68 we don't have any feature for randomizing the amount of throttling within a given range.

You might be able to achieve this using Puppeteer.

like image 134
Kayce Basques Avatar answered Sep 19 '22 09:09

Kayce Basques