diff --git a/vendor/assets/javascripts/browser-update.js.erb b/vendor/assets/javascripts/browser-update.js.erb index 6a27df4c949..ef9d05b31d4 100644 --- a/vendor/assets/javascripts/browser-update.js.erb +++ b/vendor/assets/javascripts/browser-update.js.erb @@ -40,7 +40,7 @@ var $buo = function() { var style = ".buorg {position:absolute; z-index:111111; width:100%; top:0px; left:0px; background:#FDF2AB; text-align:left; font-family: sans-serif; color:#000; font-size: 14px;} .buorg div {padding: 8px;} .buorg a, .buorg a:visited {color:#E25600; text-decoration: underline;}"; // insert the div and stylesheet into the DOM - document.body.insertBefore(div, document.body.firstChild); + document.body.appendChild(div); // put it last in the DOM so Googlebot doesn't include it in search excerpts document.getElementsByTagName("head")[0].appendChild(sheet); try { sheet.innerText = style;