Feature request - $.ajax lazy loading
Hi,
why couldn't we store in a var all our $.ajax requests and execute them only on need?
If i write $.ajax({something}), the request actually is automatically executed. I'd like to store this request in an array and execute them programmatically.
If this is already possible, please tell me how...!
Thanks
Matteo
P.S.: obviously I could wrap AJAX requests in an anonymous function's body and store its reference as an array element. I'm asking about why this couldn't be implemented as a native functionality, it could be useful using it in conjunction with the deferred logic.