AMP plugin ine rutsigiro rweyayo JavaScript kodhi

Iyo Accelerated Mobile Mapeji (AMP) jenareta yekugadzira mapeji eGoogle AMP , AMP plugins uye AMPHTML tag jenareta inotsigira kutorwa kweJavaScripts yako.


Kushambadzira

Sanganisa yakatarwa JavaScript


extension

Yako wega JavaScripts uye Iframe zvemukati zvinongo shandiswa mumapeji eAMP pasi pemamwe mamiriro.

Yako JavaScript kodhi inogona kungoiswa muAMPHTML kana ikaiswa kuburikidza ne iframe.

Iframes mu AMPHTML (kuburikidza neiyo 'amp-iframe' tag) chete gamuchira zvemukati zvine yakavharidzirwa HTTPS kubatana.

Kana iwe uchida kushandisa yako wega JavaScript mu AMPHTML, unofanirwa kuvapa kuburikidza neHTTPS kubatana uye wozozvibatanidza mune yakatarwa subpage yewebhusaiti kuburikidza neIframe, kuitira kuti iyo Inokurumidzirwa Nhare dzeMapeji jenareta inogona kubva yazivawo yako JavaScript uye wochishandura ku 'amp Shandura -iframe' ma tag uye woasanganisa iwo mune AMP peji.

Iyo AMPHTML jenareta inoona iyo akasanganiswa iframes (kusanganisira JavaScripts), inoashandura kuita anowirirana 'amp-iframe' tags, uye inoita iyo JavaScripts irimo inowanikwa muAMP vhezheni.

Kuti ushandise yako JavaScript mu AMPHTML, zvinotevera zvinofanirwa kusangana:

  • Yako JavaScript inofanira kuwanikwa pasi peHTTPS
  • Yako JavaScript inofanira kuiswa mukati ne iframe

Kushambadzira