AMP plugin nrog kev txhawb nqa tus kheej JavaScript tus lej

Lub vev xaib nrawm ntawm tes (AMP) lub tshuab hluav taws xob txhawm rau tsim Google AMP nplooj ntawv , AMP plugins thiab AMPHTML tag lub tshuab hluav taws xob txhawb nqa kev lees txais yuav ntawm koj tus kheej JavaScripts.


Werbeanzeige

Ua ke nrog JavaScript tshwj xeeb


extension

Cov Kev Cai JavaScripts thiab Cov ntsiab lus Iframe tsuas yog siv tau hauv AMP nplooj ntawv hauv qee yam kev mob.

Koj tus kheej JavaScript chaws tau tsuas yog thauj rau hauv AMPHTML yog tias nws tso ntawm ib qho iframe.

Iframes in AMPHTML wiederum (via '‪‎amp-iframe‬'-Tag) akzeptieren nur Inhalte, die über eine verschlüsselte ‪‎HTTPS‬-Verbindung verfügen.

Yog tias koj xav siv koj tus kheej JavaScripts hauv AMPHTML, koj yuav tsum muab lawv los ntawm kev sib txuas ntawm HTTPS thiab tom qab ntawd muab sib xyaw rau hauv cov nplooj ntawv sib txawv ntawm lub vev xaib los ntawm Iframe, yog li ntawd Accelerated Mobile Pages Generator tuaj yeem paub txog koj li JavaScripts thiab hloov lawv rau 'amp Hloov-ua qauv' cim npe thiab sib sau lawv mus rau hauv AMP nplooj.

Lub AMPHTML lub tshuab hluav taws xob thiaj li lees paub qhov sib xyaw iframes (suav nrog JavaScripts), hloov lawv rau hauv cov cim 'amp-iframe' cim npe, thiab ua rau tus kheej JavaScripts muaj nyob rau hauv AMP version.

Txhawm rau siv koj tus kheej JavaScript hauv AMPHTML, cov xwm txheej hauv qab no yuav tsum tau ntsib:

  • Koj tus kheej JavaScript yuav tsum nkag mus tau hauv qab HTTPS
  • Koj tus kheej JavaScript yuav tsum tau kos los ntawm ib qho iframe

Werbeanzeige