by manicdee · 7y ago · 0 comments
This is like a car that tries to phone home every time you start it, so either you keep the phone service active and get a salesperson talking to you while driving, or you disable the phone and the car leave the immobiliser active for a minute each time you try to start the car.
As for the other half of your analogy - stop poking holes in the gas tank and it won't need active service.
This principle is also true when writing web pages; if you load an external resource, you need to check for and handle the case where that resource might not be available. Failing to load a resource can happen for many different reasons, not just someone blocking it with their client. Proper handling the error depends on what the resource is: display the content that is already available (perhaps in a less than ideal state), or if that isn't possible displaying an appropriate error message. This includes cases where the Javascript itself isn't available (for any reason).
Networks are not reliable or universally available. Quality programming understand that and does the best it can when failures happen.
All three cases are actually covered (full-script support, partial-script support, and noscript support). That's more resilient than most apps.
My complaint is not the use of CDN, it is the forced delay to load a page when the CDN is not available or certain resources are blocked. This is a direct form of punishment from Google: refuse to let us track everything you read, we will make it uncomfortable for you to read anything.
Disabling the phone-home feature is nothing like poking holes in the fuel tank.
Then why the complaint about "phoning home"? Analogies are imprecise and brittle.
>This is a direct form of punishment from Google
If you show me some proof I'll be glad to believe you. Occam's razor says it's a simple fallback for unexpected results.
>Disabling the phone-home feature...
Blocking a required library? Who is straw-manning now?
Calling the phone home feature a required library is part of the malintent from Google. Most websites I interact with don’t need a Google Analytics in order to function, for example. If I block a Google Analytics they refuse to work. The simplest explanation here is that time-short programmers just copy the code presented by Google, who in turn want everything to report back to them so they can monetise third party sites.
Building your site for AMP and blindly using the 8s timeout from the Google copy and paste archive is exactly the same story. You don’t need that much time to load all the assets, that timeout is there only to punish people who block the AMP resources.