AMP-NEW

جذاب وسلس وفوري

يمكنك بسهولة إنشاء مواقع إلكترونية تضع المستخدم على رأس أولوياتها باستخدام AMP.

بدء الاستخدام
<amp-sidebar
  id="sidebar"
  layout="nodisplay"
  side="right"" ""left"
</amp-sidebar>

What is
AMP?

Web pages that are compelling, smooth, and load near instantaneously

AMP is a simple and robust format to ensure your website is fast, user-first, and makes money. AMP provides long-term success for your web strategy with distribution across popular platforms and reduced operating and development costs.

<amp-img class="resp-img"
  alt="Desktop"
  width="550"
  height="368"
  src="images/Desktop.jpeg">
</amp-img>
<style amp-custom>
  .resp-img {
    max-width: 700px;
  }
</style>

إنشاء تجارب ويب رائعة للمستخدمين عبر الويب المفتوح

AMP enables the creation of websites and ads that are consistently fast, beautiful and high-performing across devices and distribution platforms. Publishers and advertisers can decide how to present their content that emphasizes a user-first experience.

لقطة شاشة لموقع إلكتروني يستخدم AMP.
لقطة شاشة لموقع إلكتروني يستخدم AMP.
الحفاظ على المرونة والتحكم في درجة التعقيد في التعليمة البرمجية وتقليلها يمكنك استخدام CSS لتخصيص بيانات التصميم والبيانات الديناميكية لديك لجلب أحدث البيانات عند الحاجة.
إنشاء مجموعات لضمان الأداء يستغرق إنشاء موقع إلكتروني كبير وقتًا طويلًا ويتطلب جهدًا فائقًا. ويتم تحسين مكونات AMP بالفعل لتحقيق أفضل أداء.
إنشاء من أجل مستقبل مستدام للجميع في نطاق الويب المفتوح يمثل مشروع AMP مبادرة مفتوحة المصدر لحماية مستقبل الويب من خلال تقديم تجربة أفضل وأسرع وأكثر سهولة عند الاستخدام.
تحسِّن سرعة صفحة الويب من تجربة المستخدم ومقاييس الأعمال الأساسية يتم تحميل صفحات AMP بشكل فوري تقريبًا - في جميع الأجهزة والمنصّات.
إنشاء صفحات AMP هو أمر سهل يمكنك غالبًا تحويل أرشيفك بالكامل في أيام - خاصةً عند استخدام نظام إدارة محتوى (CMS) شائع مثل WordPress أو Drupal.
يمكن تطبيق AMP عبر عدة نقاط اتصال بالويب Used by global platforms like Google and Bing, AMP allows users a native-feeling experience across all platforms by defaulting to AMP pages when available.

We are committed to improving speed across the board. If our site takes a long time to load, it doesn’t matter how great our journalism is, some people will leave the page before they see what’s there.

ديفيد ميريل، مدير إنتاج أول

الاطّلاع على قصة النجاح

ممّ يتكون AMP HTML

<!doctype html>
<html >
  <head>
    <meta charset="utf-8" />
    <link rel="canonical" href="hello-world.html" />
    <meta name="viewport" content="width=device-width" />
    <style amp-boilerplate>
      body {
        -webkit-animation: -amp-start 8s steps(1, end) 0s 1 normal both;
        -moz-animation: -amp-start 8s steps(1, end) 0s 1 normal both;
        -ms-animation: -amp-start 8s steps(1, end) 0s 1 normal both;
        animation: -amp-start 8s steps(1, end) 0s 1 normal both;
      }
      @-webkit-keyframes -amp-start {
        from {
          visibility: hidden;
        }
        to {
          visibility: visible;
        }
      }
      @-moz-keyframes -amp-start {
        from {
          visibility: hidden;
        }
        to {
          visibility: visible;
        }
      }
      @-ms-keyframes -amp-start {
        from {
          visibility: hidden;
        }
        to {
          visibility: visible;
        }
      }
      @-o-keyframes -amp-start {
        from {
          visibility: hidden;
        }
        to {
          visibility: visible;
        }
      }
      @keyframes -amp-start {
        from {
          visibility: hidden;
        }
        to {
          visibility: visible;
        }
      }
    </style>
    <noscript
      ><style amp-boilerplate>
        body {
          -webkit-animation: none;
          -moz-animation: none;
          -ms-animation: none;
          animation: none;
        }
      </style></noscript
    >
    <script async src="https://cdn.ampproject.org/v0.js"></script>
    <script
      async
      custom-element="amp-geo"
      src="https://cdn.ampproject.org/v0/amp-geo-0.1.js"
    ></script>
    <script
      async
      custom-element="amp-bind"
      src="https://cdn.ampproject.org/v0/amp-bind-0.1.js"
    ></script>
  </head>
  <body>
    <amp-geo layout="nodisplay">
      <script type="application/json">
        {
          "AmpBind": true
        }
      </script>
    </amp-geo>
    <h1>Hello in <span [text]="country">...</span>!</h1>
    <button on="tap:AMP.setState({'country': ampGeo.ISOCountry.toUpperCase()})">
      Where am I?
    </button>
  </body>
</html>

Hello
World!

المكوّنات المضمّنة

AMP HTML is HTML with some restrictions for reliable performance.

Though most tags in an AMP HTML page are regular HTML tags, some HTML tags are replaced with AMP-specific tags (see also HTML Tags in the AMP spec). These custom elements, called AMP HTML components, make common patterns easy to implement in a performant way.

For example, the amp-img tag provides full srcset support even in browsers that don’t support it yet. Learn how to create your first AMP HTML page.

AMP pages are discovered by search engines and other platforms through the HTML tag. You can choose to have a non-AMP version and an AMP version of your page, or just an AMP version.

ذاكرات تخزين AMP المؤقتة

AMP pages can be cached for near instantaneous loading on the web. Platforms like Google run AMP caches to enable fast loading of your content from their service.

The Google AMP Cache is a proxy-based content delivery network for delivering all valid AMP documents. It fetches AMP HTML pages, caches them, and improves page performance automatically. When using the Google AMP Cache, the document, all JS files and all images load from the same origin that is using HTTP 2.0 for maximum efficiency.
The cache also comes with a built-in validation system which confirms that the page is guaranteed to work, and that it doesn't depend on external resources. The validation system runs a series of assertions confirming the page’s markup meets the AMP HTML specification.

Another version of the validator comes bundled with every AMP page. This version can log validation errors directly to the browser’s console when the page is rendered, allowing you to see how complex changes in your code might impact performance and user experience.

استكشف حالات الاستخدام لمواقع AMP الإلكترونية