Skip to content

Commit d22244c

Browse files
committed
Smaller timeout for data-modified events
1 parent cb9f711 commit d22244c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/firequery-actor.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ const OBJECT_PREVIEW_MAX_ITEMS = 10;
2727

2828
// Elements with modified data are sent in chunks after timeout
2929
// to remove possible duplicates and optimize RDP traffic.
30-
const DATAMODIFIED_TIMEOUT = 1000;
30+
// 700 milliseconds is relatively big timeout, but JS heavy pages
31+
// might generated a lot of mutations. Let's wait for user feedback
32+
// before we make the timeout smaller.
33+
const DATAMODIFIED_TIMEOUT = 700;
3134

3235
// For debugging purposes. Note that the tracing module isn't available
3336
// on the backend (in case of remote device debugging).

0 commit comments

Comments
 (0)