Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My understanding is that AMP wants to make it impossible to write poorly-performing websites. For example, all externally fetched resources, like images, must have explicit dimensions specified in markup. This makes it possible to statically lay out the page, without blocking on any dependencies aside from the AMP library and the page markup itself. Third-party JavaScript is forbidden, etc.

Similarly, page analytics are all collected once, by a single AMP library, and then distribuetd to as many endpoints as you want, instead of each analytics endpoint having to duplicate the work of collection.

There are trade-offs. AMP is restrictive (no third-party JavaScript, limits on CSS, etc.), the AMP library itself is 200 KB (60 KB gzipped), and AMP is ultimately controlled entirely by Google, though the core team is interested in recruiting external maintainers.



Why not just convert your page to use the AMP style, but still use your own CDN to deliver it? That way you get most of the benefits but retain control.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: