airbrake/airbrake — Issue #67: javascript notifier probably doesn't need to document.write
Author: nevir
Created: 2012-03-02 18:25:01+00:00
State: open

Rather than

(function(){
var notifierJsScheme = (("https:" == document.location.protocol) ? "https://" : "http://");
document.write(unescape("%3Cscript src='" + notifierJsScheme + "airbrake.io/javascripts/notifier.js' type='text/javascript'%3E%3C/script%3E"));
})();

It would probably be preferrable to use a scheme-less URL:

afaik, it's well supported for JS - but don't take my word for that!