The Fetch batcher
The core/fetch module makes requests to the Moodle REST API (routes). In addition to immediate requests, it can queue several requests and send them as a single HTTP $batch request, reducing the number of round trips.
The core/fetch module makes requests to the Moodle REST API (routes). In addition to immediate requests, it can queue several requests and send them as a single HTTP $batch request, reducing the number of round trips.