News for hackers. Stuff that matters.
Re:WordPress Sites Now Support Google’s AMP to Make Mobile P... by fareesh on Wednesday February 24, 2016 @11:29AM (#11167944)
Are AMP and HTTP/2 best practices contradictory to one another?
Re:WordPress Sites Now Support Google’s AMP to Make Mobile P... by cramforce on Wednesday February 24, 2016 @12:02PM (#11168233)
Actually not at all. AMP is specifically designed with HTTP/2 in mind and takes full advantage of it. E.g. it loads articles, scripts, images, fonts, etc. through a single HTTP 2 tunnel.
Re:WordPress Sites Now Support Google’s AMP to Make Mobile P... by Zikes on Wednesday February 24, 2016 @11:47AM (#11168104)
Can you elaborate? From what I can tell, AMP makes use of on-demand resource loading, which HTTP/2 prefers over bundled resources thanks to multiplexing.
Re:WordPress Sites Now Support Google’s AMP to Make Mobile P... by fareesh on Wednesday February 24, 2016 @01:34PM (#11169018)
From what I understood, there are a few contradictions like splitting up assets (preferable in HTTP/2) as opposed to concatenating/merging them (preferable in AMP). Perhaps I misunderstood
Re:WordPress Sites Now Support Google’s AMP to Make Mobile P... by Zikes on Wednesday February 24, 2016 @02:50PM (#11169659)
AMP encourages you to keep your assets separated, so you only load the bits you need. If a page is going to use <amp-youtube> you'll have to include the appropriate script tag for that component in the page, for example.