What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 5 questions

Less than a minute. Find out how much you really know about Google search.

🕒 ~1 min 🎯 5 questions

Official statement

AMP pages do not allow the execution of custom JavaScript for users, but rather utilize optimized custom AMP components for fast loading. This ensures a quicker and smoother experience for users as it avoids slowdowns due to heavy scripts.
10:00
🎥 Source video

Extracted from a Google Search Central video

⏱ 58:36 💬 EN 📅 14/12/2016 ✂ 10 statements
Watch on YouTube (10:00) →
Other statements from this video 9
  1. 3:43 3 secondes de chargement : pourquoi Google fixe-t-il ce seuil critique pour vos conversions ?
  2. 12:04 L'expérience AMP est-elle vraiment le parcours utilisateur idéal selon Google ?
  3. 13:24 PWA et AMP : faut-il choisir entre fonctionnalités avancées et vitesse de chargement ?
  4. 16:11 Comment installer un service worker sur les pages AMP en cache pour améliorer la performance ?
  5. 29:55 L'AMP booste-t-elle vraiment la visibilité et l'engagement par rapport aux pages classiques ?
  6. 34:25 Le préchargement AMP par Google cache-t-il un levier SEO sous-exploité pour vos pages mobiles ?
  7. 36:45 AMP et PWA : votre stratégie mobile tient-elle la route face aux limitations navigateurs ?
  8. 53:34 Les caches tiers AMP peuvent-ils améliorer votre référencement sans pénalités ?
  9. 71:50 Les publicités AMP se chargent-elles vraiment aussi vite que le contenu ?
📅
Official statement from (9 years ago)
TL;DR

Google imposes a strict restriction on AMP: no custom client-side JavaScript, only pre-optimized AMP components. This technical limitation aims to ensure ultra-fast loading by eliminating heavy scripts that slow down rendering. For SEO practitioners, this means completely rethinking the front-end architecture of accelerated pages and dealing with a constrained environment where certain traditional interactive features become impossible to implement.

What you need to understand

What does this technical restriction really mean?

AMP imposes a closed framework where custom JavaScript is simply banned from executing on the client side. You cannot inject your own scripts to modify the DOM, track custom events, or implement complex interactions as you would on a regular page.

Instead, Google provides a library of pre-built components (amp-accordion, amp-carousel, amp-analytics, etc.) designed to meet common needs. These components are pre-optimized, their code is audited, and their behavior is predictable. The AMP engine loads them asynchronously and controls their execution to prevent rendering blocking.

Why does Google justify this constraint in the name of performance?

The official reasoning can be summed up in one sentence: third-party JavaScript is the leading cause of slowdowns on web pages. Poorly configured analytics scripts, oversized jQuery libraries, and stacked ad trackers create dependency chains that block rendering and skyrocket the Time to Interactive.

By locking down the execution environment, AMP ensures that every loaded element adheres to strict performance budgets. The framework can prioritize visible content, defer the loading of non-critical resources, and maintain a responsive main thread. It's a radical trade-off: sacrificing flexibility to gain predictability.

How does this approach translate into practical SEO?

For a practitioner, this means that migrating a page to AMP is not just about adding a few tags. You must completely refactor the front-end architecture: no more custom jQuery sliders, forms with complex JavaScript validation, or dynamic comment systems that do not pass through an existing AMP component.

Some use cases become impossible without heavy workarounds. If your e-commerce site relies on an interactive product configurator with complex business logic, migrating to AMP may simply be non-viable. The technical constraint then turns into a strategic decision: does the speed gain justify the loss of functionality?

  • No custom JavaScript executed on the client-side in AMP pages
  • AMP components only for any interactivity (accordions, carousels, forms)
  • Guaranteed performance at the cost of reduced flexibility
  • Mandatory refactoring to migrate existing pages to AMP
  • Some complex use cases may become impossible to implement

SEO Expert opinion

Does this statement really reflect on-the-ground observations?

Yes and no. On paper, the logic holds: limiting JavaScript improves performance. Measurements do show that AMP pages load faster than their non-AMP counterparts in most cases. But this correlation is not just technical; it is also political.

Google has long favored AMP in its Top Stories carousels and mobile display. Publishers who adopted AMP gained visibility, which created a selection bias: sites investing in AMP were also those taking performance seriously overall. It's hard to untangle what comes strictly from AMP optimization and what stems from an existing culture of speed.

What nuances should be added to this official position?

First nuance: saying that AMP “guarantees” a fast experience is a bit strong. A well-optimized non-AMP site (inline Critical CSS, smart lazy loading, deferred JavaScript, efficient CDN) can achieve equivalent or even superior Core Web Vitals scores. AMP imposes best practices, but it does not monopolize speed.

Second nuance: the prohibition of custom JavaScript sometimes creates absurd workarounds. Some developers load iframes to bypass the restriction, or go through amp-script (which allows limited JavaScript in an isolated worker) with such strict constraints that the code becomes more complex than a well-thought-out classic implementation. [To be verified]: to what extent do these workarounds actually impact the promised performance?

In what cases does this rule pose practical problems?

The problem arises when the business model collides with AMP constraints. Media sites that rely on programmatic advertising have to juggle amp-ad and its limitations. SaaS platforms offering interactive demos cannot port them to AMP without stripping them of their substance.

Another tricky case: advanced analytics tools. amp-analytics covers the basics (pageviews, clicks), but as soon as you want to track complex custom events (time spent on a specific element, scroll depth by section, interactions with a dynamic element), you run into limitations. The result: either you simplify your tracking or you abandon AMP.

Note: Since the end of preferential AMP treatment in mobile results, the relevance of this technical constraint is diminishing. If your non-AMP site already achieves good Core Web Vitals, the investment in AMP refactoring may no longer be economically justified.

Practical impact and recommendations

What should you do if you are considering AMP?

Start with a JavaScript dependency audit on your critical pages. List all scripts currently loaded: analytics, A/B testing, live chat, advertising, social widgets, video players. For each one, check if there is an equivalent functional AMP component.

If a script has no AMP equivalent and is business-critical, you have three options: find a workaround (often heavy), abandon the functionality on AMP, or give up on AMP for that type of page. Make this decision before you start coding, not after you've invested weeks in development.

What mistakes should be avoided during an AMP migration?

A common mistake: believing that AMP is just a simple “accelerated mode” that you activate by adding tags. No. It's a fully-fledged framework with its own strict validation rules. One forgotten custom script, and your AMP page is invalidated; Google will not cache it.

Another trap: neglecting the non-AMP fallback. Many sites maintain two versions (AMP and classic) with rel="amphtml" and rel="canonical". If you do not synchronize content between the two versions, you create duplicate content and inconsistencies that harm crawl budget and user experience.

How to check if your AMP implementation is compliant?

Use the official AMP validator (validator.ampproject.org) or the Chrome AMP Validator extension. These tools immediately detect violations: unauthorized JavaScript, disallowed tags, missing attributes. No AMP page will be cached by Google as long as it contains errors.

Also test the actual performance with PageSpeed Insights or WebPageTest. AMP is supposed to be fast, but a poorly designed AMP page (too many heavy images, nested amp-iframes, blocking fonts) can remain slow. Technical validity does not automatically mean optimal performance.

  • Audit all current JavaScript dependencies before migrating
  • Check for the existence of equivalent AMP components for each functionality
  • Use the AMP official validator on each migrated page
  • Test the real Core Web Vitals post-migration, not just technical compliance
  • Maintain strict synchronization between AMP and non-AMP versions
  • Document the functional compromises accepted to meet AMP constraints
Migrating to AMP requires a thorough rethinking of the front-end architecture. The JavaScript constraint is non-negotiable, making certain use cases impossible. Before you start, evaluate the cost/benefit ratio: does your mobile audience justify the functional compromises? If your non-AMP site already performs well in Core Web Vitals, the AMP investment may no longer be a priority. These technical and strategic decisions can quickly become complex to tackle alone. Consulting a specialized SEO agency can provide experienced external insights to assess the relevance of AMP in your specific context and, if necessary, guide the migration while avoiding common pitfalls.

❓ Frequently Asked Questions

Peut-on utiliser Google Analytics classique sur une page AMP ?
Non, pas directement. Vous devez passer par le composant amp-analytics qui propose des intégrations préconfigurées pour GA4, mais avec des capacités de tracking réduites par rapport à gtag.js classique.
Est-ce que amp-script permet de contourner totalement l'interdiction du JavaScript ?
Partiellement seulement. amp-script autorise du JavaScript custom dans un Web Worker isolé, mais avec des contraintes strictes : taille maximale de 150 Ko, pas d'accès direct au DOM, latence contrôlée. C'est loin d'être équivalent à un script classique.
Les pages AMP bénéficient-elles encore d'un boost de ranking sur mobile ?
Non, ce traitement préférentiel a été supprimé. AMP n'est plus un critère de ranking direct. Seule la performance réelle (Core Web Vitals) compte désormais, qu'elle soit atteinte via AMP ou une optimisation classique.
Comment gérer un configurateur produit complexe sur une page AMP ?
C'est compliqué. Les configurateurs avec logique métier lourde ne passent généralement pas en AMP sans sacrifier des fonctionnalités. Solution courante : garder une page non-AMP pour le configurateur et limiter AMP aux fiches produits simples.
Faut-il maintenir deux versions de chaque page (AMP et non-AMP) ?
Ce n'est plus systématiquement nécessaire. Beaucoup de sites abandonnent la double version au profit d'une optimisation classique performante, surtout si leur trafic mobile provient majoritairement de recherche organique hors Top Stories.
🏷 Related Topics
Domain Age & History AI & SEO JavaScript & Technical SEO Mobile SEO

🎥 From the same video 9

Other SEO insights extracted from this same Google Search Central video · duration 58 min · published on 14/12/2016

🎥 Watch the full video on YouTube →

Related statements

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.