gpt4 book ai didi

ajax - AJAX 是否可以在 AMP 中加载嵌入?

转载 作者:行者123 更新时间:2023-12-05 00:17:13 25 4
gpt4 key购买 nike

快速问题:是否可以动态加载内容,例如

<amp-twitter
data-tweetid="611193269532295168"
layout="responsive">

通过 AJAXAMP文章?

最佳答案

AFAIK,这是不可能的,但 AMP - LIVE-UPDATING AMPS

a new AMP component that updates page content dynamically without additional navigation or reload: readers looking at an earlier version of the page will simply see new updates as they come in.


enter image description here
enter image description here

The amp-live-list component adds support for publishing live updates to AMP pages as new content becomes available in the source document. This works great for implementing live blogs.

In other words, the AMP runtime will poll the server for updates to the origin document, fetching itself. The server can returns the entire AMP page or parts of it, and the runtime updates the page in-place seamlessly.


您还可以查看相关的 SO 问题可以 AJAX polling be used with AMP? 讨论如何动态加载 AMP 页面的更新。
希望这可以帮助。

关于ajax - AJAX 是否可以在 AMP 中加载嵌入?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40682349/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com