I-plugin ye-AMP ngokuxhaswa kwamakhodi wakho weJavaScript

Umkhiqizi we-Accelerated Mobile Pages (AMP) wokwakha amakhasi we-Google AMP , ama-plugins we- AMP kanye ne- AMPHTML tag tag generator basekela ukwamukelwa kwe-JavaScript sakho.


Werbeanzeige

Hlanganisa iJavaScript ethile


extension

Okuqukethwe kwe-JavaScript ngokwezifiso nokuqukethwe kwe-Iframe kungasetshenziswa kuphela kumakhasi we-AMP ngaphansi kwezimo ezithile.

Eigener JavaScript-Code lässt sich in AMPHTML nur laden, wenn dieser über einen Iframe eingefügt wird.

Ama-iframes ku-AMPHTML (ngomaki we-'amp-iframe ') amukela kuphela okuqukethwe okunokuxhumeka okubethelwe kwe-HTTPS.

Uma ufuna ukusebenzisa eyakho iJavaScript ku-AMPHTML, kufanele ubanikeze ngoxhumano lwe-HTTPS bese uwahlanganisa engxenyeni engezansi yewebhusayithi nge-Iframe, ukuze i-Accelerated Mobile Pages Generator nayo ikwazi ukubona ama-JavaScript akho bese uwaguqula kumathegi we-'am amp Convert -iframe 'bese uwahlanganisa ekhasini le-AMP.

Umkhiqizi we-AMPHTML uyawabona ama-iframes ahlanganisiwe (kufaka phakathi i-JavaScript), uwaguqulela kumathegi we-'amp-iframe 'ahambisanayo, futhi enze amaJavaScript wakho aqukethwe kuwo atholakala kuhlobo lwe-AMP.

Ukuze usebenzise iJavaScript yakho ku-AMPHTML, kufanele kuhlangatshezwane nale mibandela elandelayo:

  • IJavaScript yakho kufanele ifinyeleleke ngaphansi kwe-HTTPS
  • IJavaScript yakho kufanele ishumeke nge-iframe

Werbeanzeige