I hired a consultant for a client to do a mobile conversion of a site. I started coding pages in 1994 and have more experience creating C++ and Java desktop apps, but I've kept the basic html and SEO skills up over the years. I was surprised to see what looks like writing website code that is dependent on another company being up. Some small businesses don't have a lot of website development capital and knowing how often things have changed in the last 20 years, I am wondering how safe it is to depend completely on third parties being there in 3 or 5 years. Needless to say, companies get bought out and often management is very capricious in destroying vast oceans of users online holdings (witness mp3.com, geocities, myspace, and others). From what I understand, libraries are being called (like they would in a desktop application upon compilation) for the site to work at all.
What third parties? Google? jQuery? Others? Depending on WHAT is being loaded, and from WHO, that might be a stupid thing to do, or it might be completely normal. However, there is rarely any real reason to do it, as it will normally be quicker and easier to host any such libraries on the actual server - however, that means one will have to keep up with security fixes and new versions manually, while if one fetches them from an offsite location, that might be done by the people maintaining the code. Since you don't tell us which site, nor who the third party is, there's no way to give you anything worthwhile.
Someone left exactly the same post here: http://haveallfree.com/web-stuff/sh...ng-to-3rd-parties-in-their-website-code.xhtml Could be the same person.
That double post was not done by me but was either done by this site or someone copying the details. If you don't understand my post, then I can't help you.
Here are examples for those who know what I'm talking about <script type="text/javascript" src="https://www.gstatic.com/swiffy/v7.4/runtime.js"></script> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="put link code # here" crossorigin="anonymous">
And that was exactly what I was asking, _what is being loaded_. Really... That should have been in the first post. And it's completely normal, however, you could just as well ran those off your own site, or better yet, not used them at all. Especially bootstrap is really piss poor coding, and utilises classes and such completely wrong.
If the 3rd parties you're talking about involve sketchy advertising companies whose clients host all sorts of malware and whatever... OF COURSE you shouldn't. I have a feeling that by "third party" you actually mean hosting files you need on other websites. Quite frankly, I don't see the point of this. The handshakes remain as well as your website's dependency on that other's uptime. It's honestly stupid. If you have too many files linked to your page, there's probably something wrong with it as you're either using one of those useless grid/template-systems-whatever-crap or some bloated libraries you actually deploy 0.1 percent of.
It's very dangerous to depend on third parties for mission critical infrastructure. For example, in my latest product I depend on auth0 for authentication and Zoho for billing. If these services shut down, I'd be SOL. However, I'm confident these services will be around for the long run. There are plenty of examples where 3rd party code is not mission critical, like share scripts for example. The key really is to think, if this service shut down, how screwed would I be?
That's really the tipping point is confidence in who you are using. For example I use disqus on my site as a simple way to add comments to a very plain-Jane non-database driven back-end. I looked at several options and disqus seemed well established, the code is a bit of a bloated mess (I bet two-thirds of it could be junked) but it loads asynchronously reducing the overhead, it's VERY likely to already be cached in people's browsers, and they have an export feature that I regularly back-up the comments from just in case they do go awry or should I decide to move or even implement my own system. The caching thing is the big selling point of off site hosting of very commonly used scripts. The bloated idiotic halfwit mouth-breathing dumbass bullshit manure like jQuery and Bootcrap are stunning examples of this; since it's the same code regardless of what site it is being used on, the massive bloat can be partly swept under the rug by all the dipshits using it sharing one hosting location -- that way if anyone has visited any site using it, the file is already in the cache speeding the page-load and duping people into thinking the site is less of a ineptly developed than it really is. Which is why I suspect the OP was likely taken for a ride by a scam artist -- since the moment you say "bootstrap" I assume the "developer" is a drooling moron who has no business making websites.