News for hackers. Stuff that matters.
Re:Google no longer providing original URL in AMP for image ... by searchableguy on Wednesday May 27, 2020 @09:29PM (#23332357)
If someone wants to detect whether a website is using amp, what would be a good way to do it?
Re:Google no longer providing original URL in AMP for image ... by gregable on Thursday May 28, 2020 @04:57PM (#23342500)
It's more of a question of if a specific document is using AMP, the site can be a mix. Just like a site using jquery as an example.

An AMP page can be identified by examining only the first few bytes of the HTML. The `<html>` tag will contain either the `amp` or lighting-bolt emoji attribute, ie: `<html amp>`.

Technically an AMP document must pass AMP Validation to be truly AMP, so there are documents that match the above condition which aren't valid AMP. There are multiple ways to validate. A starting place is https://validator.amp.dev/

Re:Google no longer providing original URL in AMP for image ... by robin_reala on Friday May 29, 2020 @09:53AM (#23349974)
If you turn off Javascript the site won’t render for 8 seconds if it’s an AMP.