$.each - wait for jSON request before proceeding
- by GaaayLooord
I have an issue with the below code:
the jQuery.each is speeding on without waiting for the JSON request to finish. As a result, the 'thisVariationID' and 'thisOrderID' variables are being reset by the latest iteration of a loop before they can be used in the slower getJSON function.
Is there a way to make each iteration of the the .each wait…