It is possible to have an amp-iframe appear at the top of a document when theĪmp-iframe has a placeholder element as shown in the example below. Viewability information may not be available to amp-iframe.amp-iframe has no fully iframe controlled resize mechanism.amp-iframe does not provide any mechanism to pass configuration to the iframe.This means landing pages may be broken, even if the ad itself appears to work. amp-iframe enforces sandboxing and the sandbox is also applied to child iframes.Where part of the videos are advertising. It is OK to use amp-iframe for the purpose of displaying videos, Other additional features can be built in (for instance, auto-play for video players)Īmp-iframe must not be used for the primary purpose of displayingĪdvertising.This means that iframe content with unpredictable size can more often appear to the user as if it were native to the page, rather than in a scrollable frame This means getting, say, the right video thumbnail before a video loads, and reduces the coding effort to add a placeholder manually. Custom components can provide built-in placeholder images in some cases.Better resource management and performance.This is because there are many benefits to using an AMPĬomponent tailored for a specific use-case such as: The amp-iframe component should be considered a fallback if the required userĮxperience is not possible by other means in AMP, that is, there's not alreadyįor the use case. Use existing AMP components instead of amp-iframe See the "Iframe origin policy" doc for further details on allowed origins for iframes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |