scroller.serverWait
Time delay before new data is requested when server-side processing is enabled.
Please note - this property requires the Scroller extension for DataTables.
Description
When using server-side processing (serverSide
), Scroller will wait a small amount of time to allow the scrolling to finish before requesting more data from the server. This can be useful to help prevent you from DDoSing your own server with frequent Ajax requests as the user scrolls through a table!
The wait time can be configured by this parameter.
Type
Default
- Value:
200
Wait 200mS before drawing when server-side processing is enabled
Example
Wait 0.5s after scrolling ends before loading new data:
new DataTable('#myTable', {
scrollY: true,
scroller: {
serverWait: 500
}
});