Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
$.when( $.getJSON("/api/users"), $.getJSON("/api/products"), $.getJSON("/api/orders") ).done(function(users, products, orders) { // All three completed renderDashboard(users[0], products[0], orders[0]); }).fail(function() { console.error("One or more requests failed"); });
Result
Open