If you host someone else's code on your site that loads further code from an external site, such as that in the other thread by OP, but also including typical advertising, tracking/analytics, embedded media, recaptcha, Cloudflare or JS/CSS remotely loaded from CDNs then you're hacking your own site.
Which is why the site owner is at least partly to blame, perhaps fully, for anything that happens to their site after that.
The routine use of embedded third party code (hacking your own site) is exactly why most of the web is quagmire of steaming, flyblown dogshit these days, only barely usable with ad/malware/javascript blocking.
__________________
__________________
|