Live data from Hacker News

Please Make Google AMP Optional

alexkras.com

331–340 of 457 posts

Re: Please Make Google AMP Optional

#331
As someone who just heard of AMP today, i still can't find any site where it's used, nor have i ever encountered it in the wild.

Is it an american thing, not enabled for other countries? Just what am i supposed to look for?

Re: Please Make Google AMP Optional

#332
post #21

I suggest stop using google search altogether. https://duckduckgo.com/ is an excellent search engine and its trivial to make a google search via `!g` prefix when you are not finding what you are looking for.

I guess I'll try DuckDuckGo for a while (annoyed by AMP).

Re: Please Make Google AMP Optional

#333

Why doesn't AMP change the URL bar itself? I don't see a reason why it can't utilize the browser history API and attribute the correct URL page view, considering Google is probably doing your analytics too.

The history API can only change the path, you can't change the entire hostname with it, that would open too many doors to phishing if that was possible.

Re: Please Make Google AMP Optional

#334
post #304

Earlier quoted context omitted.

Restricting what you use to the AMP subset would make your page quite fast, with a dependency on a javascript file that most mobile browsers should have cached, along with having your page in the top carousel loading in smoothly like all the others. This can all be detected from your main page when crawled (as it'll link to the AMP version) so depending on the device one or the other can be presented as a search resu…

How can it be called an HTML subset when they've introduced custom tags like "amp-img"?

Custom Elements are a web standard. Anyone can just make up new tags, if they include a hyphen in the name. And with customElements.define() you can attach an ES6 class to that element and boom, DOM as an open component model.

AMP is a subset because in addition to the elements, they provide a set of restrictions that would make your page "valid AMP" and cached by Google's creepy CDN thingy.

Re: Please Make Google AMP Optional

#335
Please, web developers, as a minimum, set up your websites so that they do not depend on Google, Facebook, Microsoft, Amazon or Apple for their functionality. That means, for example, use DoubleClick or AdSense or GoogleAnalytics if you like, but please do not use jquery from Google's CDNs. If you do that, and the site is dependent on that functionality to work (i.e. for text to be displayed), those of us who don't allow Google CDNs will not be able to use the site. The same for WebAssembly: use it if you like, but please don't make your actual content unnecessarily dependent on the use of services from these multinationals. It makes the Web less free.

Re: Please Make Google AMP Optional

#337
post #304
post #276

Earlier quoted context omitted.

Why would you make an AMP page?

Restricting what you use to the AMP subset would make your page quite fast, with a dependency on a javascript file that most mobile browsers should have cached, along with having your page in the top carousel loading in smoothly like all the others. This can all be detected from your main page when crawled (as it'll link to the AMP version) so depending on the device one or the other can be presented as a search resu…

None of that requires being hosted by google.

Caching is a part of the platform and is entirely coherent with the goals, and if you want analytics or ads, you approach those in a different way. AMP caching isn't limited to Google - Bing, for instance, caches and serves AMP as well. Ultimately anyone could, and HN could cache and quick-serve AMP content for supporting sources. AMP is open source and any one can take part.

I should add a side note that many of the comments on here have taken the predictable turn of claiming that people who defend AMP are "over invested" or must work at Google. I have nothing to do with Google, and have a reasoned, fact-based opinion on AMP. I think it's a last-ditch salvation for a web where sites are demonstrating a tragedy of the commons. Nor do I think everyone denouncing AMP works for Apple or some competitor.

Re: Please Make Google AMP Optional

#338
post #335

Please, web developers, as a minimum, set up your websites so that they do not depend on Google, Facebook, Microsoft, Amazon or Apple for their functionality. That means, for example, use DoubleClick or AdSense or GoogleAnalytics if you like, but please do not use jquery from Google's CDNs. If you do that, and the site is dependent on that functionality to work (i.e. for text to be displayed), those of us who don't a…

> That means, for example, use DoubleClick or AdSense or GoogleAnalytics if you like, but please do not use jquery from Google's CDNs.

Why is Google Analytics ok and not their CDN?

Re: Please Make Google AMP Optional

#339
post #251

Earlier quoted context omitted.

Maybe the problem is javascript

It's true of client side rendering in general. If you're targeting mobile and get most of your traffic from search results then you should be looking at aggressively lightweight sites. * Top bar with a damn small company logo and navigation links. Top bar does not follow the user down the page. Your logo isn't that cool and nobody is using your navigation links half way though an article. * No fancy or dynamic layout…

Honestly, one Piwik/GA/whatever is not going to make the page super heavy. The problem happens when a website is managed by an organization where every department adds their own fucking analytics code and the site ends up with like ten fucking trackers.

And yeah, pop-up email solicitation is the worst.

Re: Please Make Google AMP Optional

#340
post #23
post #21

I suggest stop using google search altogether. https://duckduckgo.com/ is an excellent search engine and its trivial to make a google search via `!g` prefix when you are not finding what you are looking for.

I moved off of gmail a few months ago, pretty happy about that but man duckduckgo fucking suuuucks. Really wish there was a nonprofit (with a strong privacy policy) wikipedia like .org solution that provided good results.

the thing is, if you expect DevOps- and testing-related results to a cucumber chef query[0], the search provider really needs to keep a file on you. otherwise you're going to get pages and pages of salad, end of story. this was the nature of the loss of relevancy i saw in DDG results when i started using it several years ago. instead of complaining about it, i took it as a wakeup call to the severity of my google bubble problem.

[0] https://hn.algolia.com/?query=cucumber%20chef%20salad&sort=b...

Post reply on HN