3 ms·
This is the proper solution: http://css-tricks.com/multiple-simultaneous-ajax-requests-one-callback-jquery/#comment-1154646 http://css-tricks.com/multiple-simul
by zimbatm 13y ago
This is the proper solution: http://css-tricks.com/multiple-simultaneous-ajax-requests-one-callback-jquery/#comment-1154646 http://css-tricks.com/multiple-simultaneous-ajax-requests-on...
- taf2 13y ago$.when( // Get the css-tricks once $.get("http://css-tricks.com"), // get it twice $.get("http://css-tricks.com") ).then(function( csstricks1, csstricks2 ) { console.log( 'Fetched css tricks' ); console.log( csstricks1, csstricks2 ); }); csstricks1[0] is the content object and usually what you'll want - for example, if the response is json.