Suppress loading errors

e.g. when clicking another link, PJAX handling means that script execution is not halted
Added TODO
Merge remote-tracking branch 'origin/master'