Back to Amphtml

Overview of web standards and features related to AMP

docs/web-standards-related-to-amp.md

latest8.0 KB
Original Source

Overview of web standards and features related to AMP

Date: 2018-08-26

Standard/featureRelationStatus
Web PackagingPrivacy-preserving preloading from cache under publisher URLInitial version of spec final. Shipping in Chrome M73, IETF consensus seeking in progress
PortalsAMP Carousel like UI with navigation to publisher (alternative to iframe promotion)Iterating on spec. Prototype implementation in Chromium
Performance TimelineReal world metric collection. This is the framework. New metrics may be needed.Shipping in first browsers
Paint Timing 1Initial paint related metrics (performance assessmentShipping in first browsers
Perf metric: (Initial) Layout stabilityMetric for how often layout changes without user action based on elements resizing (such as when an unsized image loads or an iframe resizes)Standard draft published. Implemented in Chromium
Perf metric: Largest Contentful PainBetter metric to reflect user perceived page load timeStandard draft published. Implemented in Chromium
Perf metric: Expected Queueing TimeMetric for how long it takes for main thread to react to user actionFeasibility exploration
Iframe performance isolationPossible under current standards, but requires browsers to implement. Reduces need for embeds to behave wellChrome has 2 efforts in progress (Site isolation, cooperative multitasking). Other browser plans unknown.
Feature PolicyAllows web pages to turn off legacy features or opt into new behavior. This is the framework. New policies may be neededShipping in first browsers
Transfer size policy: Limit amount of main thread JSIncentivize off-main-thread computation.Just an idea.
Feature Policy: Prevent navigation without user actionSimilar to iframe sandbox but for top level window.Just an idea.
CSP: Stricter CSP in pre-render modeAllow pages to restrict and make it observable what they cannot do when being pre-rendered.Just an idea.
Feature Policy: No unsized mediaPrevent media (images) to resize based on intrinsic sizeUnder discussion
Feature Policy: No uncomposited animationsAllow pages to opt into only running animations that can be composited on the GPU.Just an idea.
Responsive image preloadAllows pre-loading of responsive images.Under discussion. In Chrome behind a flag.