I have 2 datatables on the same page. I am using reload to reload them both as such:
setInterval( function () {
jQuery('#tablepress-1').DataTable().ajax.reload();
jQuery('#tablepress-2').DataTable().ajax.reload();
}, 30000 );
but this causes 2 calls ajax calls to the server. Server is already returning data for both tables in both calls. How to combine multiple reloads so that only 1 call is made to update both?