{hero}

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

number

Description:

Time to wait before loading additional data after scrolling ends - milliseconds.

Default

  • Value: 200

Wait 200mS before drawing when server-side processing is enabled

Example

Wait 0.5s after scrolling ends before loading new data:

1
2
3
4
5
6
new DataTable('#myTable', {
    scrollY: true,
    scroller: {
        serverWait: 500
    }
});

Comments (0)

No comments posted for this page yet. Be the first to contribute!

Post new comment

Contributions in the form of tips, code snippets and suggestions for the above material are very welcome. To post a comment, please use the form below. Text is formatted by Markdown.

To post comments, please sign in to your DataTables account, or register:

Any questions posted here will be deleted without being published.
Please post questions in the Forums. Comments are moderated.