batching of AJAX requests