5 ms·
In other words: blocking random scripts might cause sites to stop working. Who would have thought? This is the equivalent of deleting a random third party analy
by gruez 3y ago
In other words: blocking random scripts might cause sites to stop working. Who would have thought? This is the equivalent of deleting a random third party analytics library and complaining that your app no longer builds. Sure, there's the concept of progressive enhancement or whatever, but at the same time it's also unreasonable to expect the developer to accommodate the possibility of any third party script getting blocked.
- bandergirl 3y ago> possibility of any third party script getting blocked I'd say it's not unreasonable. You're giving your third parties the ability to break your business. Third party scripts are blocked or just fail to load all the time, APIs change suddenly, etc.
- gruez 3y ago>Third party scripts are blocked or just fail to load all the time What's your strategy for dealing with jquery not getting loaded? >APIs change suddenly, etc. That's going to be an issue regardless of you check whether the script is loaded or not.
- Caligatio 3y ago> What's your strategy for dealing with jquery not getting loaded? Host it on your own infrastructure so that it's the same reliability as your site itself?
- gruez 3y agoThat might be doable if the library is jquery or whatever, but how are you going to replace google maps? Hosting an OSM tiles server is non-trivial, and I highly doubt that you'll be able to host it with better reliability than google.
- bandergirl 3y agojQuery isn't Google Maps. Different tools have different solutions. You can save your site by self-hosting jQuery, but if your business depends on Google Maps you should at least handle failure more gracefully than a blank screen.
- TheCleric 3y agoI have done that in the past, but there is an upside to not doing it that way. If you use a CDN, and the user has already loaded it from the CDN via another site, that's only less thing to download. So it can make your site seem faster for a subset of users.
- bandergirl 3y ago> the user has already loaded it from the CDN via another site That hasn't been true for years due to timing attacks. See: https://news.ycombinator.com/item?id=24745748 https://news.ycombinator.com/item?id=24745748
- TheCleric 3y agoDid not know this had changed. Thanks for the information.
- extraduder_ire 3y agoIn this case, breakage doesn't seem to affect you paying them or any of the money-making parts of their business. It might fail at an ordering step, I don't know. All online ordering for Micky-D's here is done through third-parties. This case specifically just seems to hit (mandated?) nutritional information that's also printed on the packaging.
- whalesalad 3y agoThat’s the wrong attitude. Unless the function of your site completely depends on google maps it shouldn’t break other logic. We’ve been building websites that survive these kinds of things for decades. Some people just don’t engineer their stuff correctly and this is the result. It’s not hard to do it right.
- gruez 3y agoWhy should I, the developer go out of my way to accommodate people going out of their way (by installing an adblocker/script blocker) to break my app? If you're going out of your way to create a non-standard execution environment, any breakages is on you.
- ben_w 3y agoAd blockers should not be considered "non standard". Even if blockers do count as non-standard, random scripts not loading should not be capable of bringing down your site, and this should've been clear even before the npm left-pad debacle.
- gruez 3y ago> Ad blockers should not be considered "non standard". In this specific case the behavior is caused by more than a run of the mill adblocker with standard blocking lists. The OP seems to be using a very aggressive blocking list (eg. blocking all google services), or blocking all third party scripts altogether. >Even if blockers do count as non-standard, random scripts not loading should not be capable of bringing down your site, and this should've been clear even before the npm left-pad debacle. "shouldn't" is debatable here, especially when the cost to mitigate those issues are non-trivial (engineering effort) and the chance of it occurring (eg. google maps randomly failing) is low. A failed hard drive shouldn't bring down a computer either, but how many of us are using laptops with RAID1 drives?
- Clent 3y agoThere are websites that look for ad-blockers and demand you turn them off. The website has every right to server you the content as they seem fit. You are not entitled to an experience other than the one they are willing to provide.