time
Specifies the amount of time to wait to combine requests.
Number
Defaults to 1
, meaning only requests made within the same "thread of execution" will be
combined (i.e. requests made before the browser takes a break from the ongoing JavaScript execution).
Increasing this number will mean that requests are delayed that length of time in case other requests are made. In general, we advise against increasing this amount of time except in cases where loads take a significant amount of time and the increased delay is unlikely to be noticed.
var combineRequests = require("can-connect/data/combine-requests/");
connect([... combineRequests, ...],{
time: 100
})