> it's horrible for developers to use and no-one I know advocates it
I've seen developers advocate for document.write to inject locally-hosted JavaScript as a fallback for when CDNs are down: https://www.hanselman.com/blog/CDNsFailButYourScriptsDontHav...
I definitely don't agree with this method, but there you go. Apparently ASP.NET 4.5 will even insert this pattern automatically.