I have a bit of javascript code that is getting loading in some data from an RSS feed.
I then need to process that data and then get some more data from another RSS feed, but it is dependant on the results of the first feed.
When I run my app, it processes both feeds at the same time, how can I make the second feed wait for the first to finish?
You can use the setTimeout function which postpones a function call for the number of milliseconds specified as explained at http://www.w3schools.com/js/js_timing.asp