AMP plugin ma le lagolago a oe lava JavaScript code

O le Accelerated Mobile Pages (AMP) afi mo le fausiaina o Google AMP itulau , o le AMP plugins ma le AMPHTML tag generator lagolagoina le vaetamaina o lau oe lava JavaScripts.


Faʻasalalauga

Tuʻu faʻatasi faʻapitoa JavaScript


extension

O lau oe JavaScripts ma le Iframe mea faʻatoa mafai ona faʻaaogaina i itulau AMP i lalo o ni tuutuuga.

O lau oe lava tulafono laiti o le JavaScript e faʻatoa mafai ona utaina i totonu o le AMPHTML pe a faʻaofi e ala i se iframe.

Iframes i le AMPHTML (ala i le 'amp-iframe' tag) naʻo le taliaina o mea o loʻo iai se faʻailoga HTTPS faʻailogaina.

Afai e te manaʻo e faʻaaoga lau oe JavaScripts i le AMPHTML, e tatau ona e avatua ia latou e ala i se fesoʻotaʻiga HTTPS ona tuʻufaʻatasia lea i latou i vaega taʻitasi o le upega tafailagi e ala i le Iframe, ina ia mafai foʻi e le Accelerated Mobile Pages Generator ona latou iloaina la oe lava JavaScripts ma faʻaliliuina i latou ia 'amp Faʻaliliu -faʻavaʻa' faʻailoga ma tuʻufaʻatasia i le itulau AMP.

O le AMPHTML generator e amanaʻia le iframes tuʻufaʻatasia (e aofia ai le JavaScripts), faʻaliliuina i latou i le 'amp-iframe' faʻailoga talafeagai, ma faʻaavanoaina ia lava JavaScripts o loʻo i ai i le AMP version.

Ina ia faʻaaoga lau oe JavaScript i le AMPHTML, o tulaga nei e tatau ona faʻamalieina.

  • Lau oe lava JavaScript tatau ona mafai ona maua i lalo ole HTTPS
  • Lau oe lava JavaScript tatau ona tuʻufaʻatasi ala i se iframe

Faʻasalalauga