The spec specifies that the script tag that includes the AMP JS library must be the last element in the head. ampproject.org/how-it-works does not follow this, but in validation mode it is not flagged up as an error. The Everything example also doesn't follow the spec.
Is where the script appears in the head actually a requirement, or should the spec be relaxed?