defunkt/jquery-pjax — comment on commit 7d9841eb499d51959d6ef65397cd90b870bbd398
File: jquery.pjax.js line 127
By knoopx:

There's a bug here. This code block should be executed before

if ( title ) document.title = title

in order to properly be set