by mooveprince · 10y ago · 0 comments
function getScript(src) {
document.write('<' + 'script src="' + src + '"><' + '/script>');
}Although a quick search in that code, I can't see getScript actually being called.
document.write() calls are dependencies of the site, in many cases. Some times they are just worthless ad stuff, but you shouldn't make any assumptions here. Not breaking the web should be the priority.
That said, I'm glad they are doing this, because finally we can wean our advertisers off their document.write obsession.