Re:Disqus now compatible with Google AMP
by xg15 on Friday September 23, 2016 @06:11AM
(#12563467)
With AMP, Google doesn't only define the standard - a core point of AMP is that AMP carefully controls which scripts run on the page.
The whole standard is designed so that you cannot insert any custom script with access to the page DOM: the closest you can do is insert cross-domain iframes, and even those have weird restrictions (like they must be outside the part of the page that the user can likely see without scrolling)
On the one hand, this trivially solves many of the "obesity" problems as the AMP team can make sure every single allowed script fits their performance requirements. On the other hand, this requires contous engagement by the AMP team, something which would have very questionable implications if AMP would become a web standard.
The whole standard is designed so that you cannot insert any custom script with access to the page DOM: the closest you can do is insert cross-domain iframes, and even those have weird restrictions (like they must be outside the part of the page that the user can likely see without scrolling)
On the one hand, this trivially solves many of the "obesity" problems as the AMP team can make sure every single allowed script fits their performance requirements. On the other hand, this requires contous engagement by the AMP team, something which would have very questionable implications if AMP would become a web standard.