Always don't specify title value for history.replaceState.
Try the injection twice, before and after the DOM parsing (and some JavaScript.)
Injecting after the parsing is not needed here. Sorry for the messy commits!
Merge pull request #3 from kiding/master

Faster history.replaceState.