RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: edgarjs
I'm unsure how the set document title works. Because you're doing an ajax call and it's the same ajax response which sets the title, however you're getting the title in the next line for the pushState function... how do you ensure that your ajax call returns BEFORE you ask for the title? Does $.getScript isn't async?