by Mister_Snuggles · 8y ago · 0 comments
My view is that if you (as a web developer) require code to make something on your site work you should host it yourself as part of your site. If you don’t host it, you actually have no idea what code is making up your site and won’t know if it changes because the third-party hosts will not play into your change control process.
This is how Best Buy was compromised recently - they used 3rd-party code on their site that got changed from under them.
What really drives me nuts is playing JavaScript Whack-A-Mole just to read some text. Trust me, you don't actually need an AJAX call mediated by something hosted on code.jquery.com just to display a bunch of text and images. Web browsers have been able to handle that since before JavaScript existed, and they can still handle it today.