I recently started hacking around jQuery and AngularJS. I am a bit late to the party, I admit.
After a few hours of beginning, I had to make Ajax api requests to a domain not residing on my localhost.
After a bit of research, I came across a little hack for Google Chrome that enables CORS.
Just start your chrome with this command :
This enables CORS on chrome for that session and enables you make your api calls.
** EDIT 1 : **
As @pmcjury pointed out, you could just :
Enable CORS on your server serving the api.
Visit : http://enable-cors.org/*
jQuery: When to use $(document).ready() and when $(window).load()