SlideShare une entreprise Scribd logo
1  sur  9
AMP(Accelerated Mobile
Pages)
A brief analysis for a typical Web Application
AMP is an open-source library that provides a way to create web pages that are
compelling, smooth, and load near instantaneously for users.
AMP HTML : AMP HTML is HTML with some restrictions for reliable performance. It uses some of the
AMP specific tags called AMP HTML components to make common patterns easy to implement in a
performant way.
AMP JS : The AMP JS library ensures the fast rendering of AMP HTML pages. It implements all of the
AMP optimizations, provide custom-tags, makes everything that comes from external resources
asynchronous and do the pre-calculation of the layout of every element on page before resources are
loaded for fast rendering of the page.
AMP Cache : 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.
How AMP works!!
1. Execute all AMP JavaScript asynchronously.
2. Size all resources statically.
3. Don’t let extension mechanisms block rendering.
4. Keep all third-party JavaScript out of the critical path.
5. All CSS must be inline and size-bound.
6. Font triggering must be efficient.
7. Minimize style recalculations.
8. Only run GPU-accelerated animations.
9. Prioritize resource loading.
10. Load pages in an instant.
Benefits
● Improve user engagement with fast and instant experience.
● Low Bounce rates.
● Mobile friendly and enhanced SEO(Search Engine Optimization).
What allowed in AMP and What Isn’t
Must Haves:
● start with the doctype <!doctype html>.
● contain a top-level <html ⚡> tag (<html amp> is accepted as well).
● contain <head> and <body> tags (They are optional in HTML).
● contain a <link rel="canonical" href="$SOME_URL"> tag inside their head that points to the
regular HTML version of the AMP HTML document or to itself if no such HTML version exists.
● contain a <meta charset="utf-8"> tag as the first child of their head tag.
● contain a <meta name="viewport" content="width=device-width,minimum-scale=1"> tag inside
their head tag. It's also recommended to include initial-scale=1.
● contain a <script async src="https://cdn.ampproject.org/v0.js"></script> tag inside their head
tag.
● contain the AMP boilerplate code (head > style[amp-boilerplate] and noscript > style[amp-
boilerplate]) in their head tag.
NO Goes:
● No Javascript.
○ Have to use available amp component elements for interactivity
● No external CSS.
○ CSS from external src through link and inline style for element
● Disallowed CSS.
○ !important, filter attributes, and only transform, opacity animations
● Disallowed HTML.
○ Img, video, audio, iframe and form tags have alternates, but not allow
frame, frameset, base, object, applet, embed.
Limitations of Using AMP.
● Bootstrap framework doesn’t go with AMP.
● Custom css and external css cannot be more in size than the AMP limit of
50kb.
● All the multimedia components needs to have static layout, pre-defined.
● General script operations using Jquery and other external js’s are not allowed
by AMP.
● May end up using more iframes to handle the external and custom written
scripts.
● Customization of content will be hindered. For example usage of different font
styles, third party sources and services etc..
● Embed tag is prohibited.
Hack around the Optimizations!!
● Load css and javascripts that are really been used for the page.
● Execute scripts async if possible.
● It doesn’t require that the page is fully valid AMP but can use some of the
components it provide.
Thank You

Contenu connexe

Tendances

Dynamic websites lec5
Dynamic websites lec5Dynamic websites lec5
Dynamic websites lec5
Belal Arfa
 
Themes and Theme Frameworks - WordCamp Fayetteville 2013
Themes and Theme Frameworks - WordCamp Fayetteville 2013Themes and Theme Frameworks - WordCamp Fayetteville 2013
Themes and Theme Frameworks - WordCamp Fayetteville 2013
Patin__
 

Tendances (20)

What’s new in joomla 3.7
What’s new in joomla 3.7What’s new in joomla 3.7
What’s new in joomla 3.7
 
Dynamic websites lec5
Dynamic websites lec5Dynamic websites lec5
Dynamic websites lec5
 
Ryan king wp-plugin-presentation
Ryan king wp-plugin-presentationRyan king wp-plugin-presentation
Ryan king wp-plugin-presentation
 
Scholarly Publishing with Omeka - part 1: Local installation
Scholarly Publishing with Omeka - part 1: Local installationScholarly Publishing with Omeka - part 1: Local installation
Scholarly Publishing with Omeka - part 1: Local installation
 
Scholarly Publishing with Omeka - part 1: Local installation
Scholarly Publishing with Omeka - part 1: Local installationScholarly Publishing with Omeka - part 1: Local installation
Scholarly Publishing with Omeka - part 1: Local installation
 
TestWorksConf: Exploratory Testing an API in Mob
TestWorksConf: Exploratory Testing an API in Mob TestWorksConf: Exploratory Testing an API in Mob
TestWorksConf: Exploratory Testing an API in Mob
 
Accelerated Mobile Pages (AMP) in Magento
Accelerated Mobile Pages (AMP) in MagentoAccelerated Mobile Pages (AMP) in Magento
Accelerated Mobile Pages (AMP) in Magento
 
Joomla! Pizza Bugs and Fun 2014 pre-event Seminar
Joomla! Pizza Bugs and Fun 2014 pre-event SeminarJoomla! Pizza Bugs and Fun 2014 pre-event Seminar
Joomla! Pizza Bugs and Fun 2014 pre-event Seminar
 
WordPress and Client Side Web Applications WCTO
WordPress and Client Side Web Applications WCTOWordPress and Client Side Web Applications WCTO
WordPress and Client Side Web Applications WCTO
 
WordPress plugin development
WordPress plugin developmentWordPress plugin development
WordPress plugin development
 
WooCommerce snippets
WooCommerce snippetsWooCommerce snippets
WooCommerce snippets
 
Themes and Theme Frameworks - WordCamp Fayetteville 2013
Themes and Theme Frameworks - WordCamp Fayetteville 2013Themes and Theme Frameworks - WordCamp Fayetteville 2013
Themes and Theme Frameworks - WordCamp Fayetteville 2013
 
Java applet-basics
Java applet-basicsJava applet-basics
Java applet-basics
 
WordPress.Org Theme Standards - WordCamp Bangkok 2019
WordPress.Org Theme Standards - WordCamp Bangkok 2019WordPress.Org Theme Standards - WordCamp Bangkok 2019
WordPress.Org Theme Standards - WordCamp Bangkok 2019
 
Whats new in joomla 3.5 & whats coming in future
Whats new in joomla 3.5 & whats coming in futureWhats new in joomla 3.5 & whats coming in future
Whats new in joomla 3.5 & whats coming in future
 
Tips for optimizing WordPress performance and usability
Tips for optimizing WordPress performance and usabilityTips for optimizing WordPress performance and usability
Tips for optimizing WordPress performance and usability
 
Java applet-basics
Java applet-basicsJava applet-basics
Java applet-basics
 
Drupal Camp Victoria
Drupal Camp VictoriaDrupal Camp Victoria
Drupal Camp Victoria
 
What to Expect from Sahi Pro
What to Expect from Sahi ProWhat to Expect from Sahi Pro
What to Expect from Sahi Pro
 
Opensymbol - BMW case study
Opensymbol - BMW case studyOpensymbol - BMW case study
Opensymbol - BMW case study
 

Similaire à Amp

Setting up & Tracking AMP Pages in Google Analytics
Setting up & Tracking AMP Pages in Google AnalyticsSetting up & Tracking AMP Pages in Google Analytics
Setting up & Tracking AMP Pages in Google Analytics
Vivek Patel
 

Similaire à Amp (20)

Google AMP (Accelerated Mobile Pages)
Google AMP (Accelerated Mobile Pages)Google AMP (Accelerated Mobile Pages)
Google AMP (Accelerated Mobile Pages)
 
Get AMP'ed for Accelerated Mobile Pages - SEO Grail Philadelphia 1/20/16
Get AMP'ed for Accelerated Mobile Pages - SEO Grail Philadelphia 1/20/16Get AMP'ed for Accelerated Mobile Pages - SEO Grail Philadelphia 1/20/16
Get AMP'ed for Accelerated Mobile Pages - SEO Grail Philadelphia 1/20/16
 
AMP
AMPAMP
AMP
 
Amp your site an intro to accelerated mobile pages
Amp your site  an intro to accelerated mobile pagesAmp your site  an intro to accelerated mobile pages
Amp your site an intro to accelerated mobile pages
 
AMP K.S.
AMP K.S.AMP K.S.
AMP K.S.
 
Step by-step procedure to implement amp in website
Step by-step procedure to implement amp in websiteStep by-step procedure to implement amp in website
Step by-step procedure to implement amp in website
 
AMP in WordPress, the WordPress Way
AMP in WordPress, the WordPress WayAMP in WordPress, the WordPress Way
AMP in WordPress, the WordPress Way
 
Get AMP’ed for AMP!
Get AMP’ed for AMP!Get AMP’ed for AMP!
Get AMP’ed for AMP!
 
What is Amp (Accelerated Mobile Pages)?
What is Amp (Accelerated Mobile Pages)?What is Amp (Accelerated Mobile Pages)?
What is Amp (Accelerated Mobile Pages)?
 
Webwing Technologies - Procedure to Implement AMP in your Website
Webwing Technologies - Procedure to Implement AMP in your WebsiteWebwing Technologies - Procedure to Implement AMP in your Website
Webwing Technologies - Procedure to Implement AMP in your Website
 
Accelerated Mobile Pages (AMP)
Accelerated Mobile Pages (AMP)Accelerated Mobile Pages (AMP)
Accelerated Mobile Pages (AMP)
 
AMP up Your WordPress Site
AMP up Your WordPress SiteAMP up Your WordPress Site
AMP up Your WordPress Site
 
Amp your site: An intro to accelerated mobile pages
Amp your site: An intro to accelerated mobile pagesAmp your site: An intro to accelerated mobile pages
Amp your site: An intro to accelerated mobile pages
 
Setting up & Tracking AMP Pages in Google Analytics
Setting up & Tracking AMP Pages in Google AnalyticsSetting up & Tracking AMP Pages in Google Analytics
Setting up & Tracking AMP Pages in Google Analytics
 
AMP and the instant web - WebPerformance NYC MeetUp group
AMP and the instant web - WebPerformance NYC MeetUp groupAMP and the instant web - WebPerformance NYC MeetUp group
AMP and the instant web - WebPerformance NYC MeetUp group
 
Accelerated Mobile Pages (AMP) The Next Revolution in Mobile Web Development
Accelerated Mobile Pages (AMP) The Next Revolution in Mobile Web DevelopmentAccelerated Mobile Pages (AMP) The Next Revolution in Mobile Web Development
Accelerated Mobile Pages (AMP) The Next Revolution in Mobile Web Development
 
Amp up your Site with Accelerated Mobile Pages
Amp up your Site with Accelerated Mobile PagesAmp up your Site with Accelerated Mobile Pages
Amp up your Site with Accelerated Mobile Pages
 
AMP - SMX München 2018
AMP - SMX München 2018AMP - SMX München 2018
AMP - SMX München 2018
 
Accelerated Mobile Pages (AMP) & How it will Impact your Business
Accelerated Mobile Pages (AMP) & How it will Impact your BusinessAccelerated Mobile Pages (AMP) & How it will Impact your Business
Accelerated Mobile Pages (AMP) & How it will Impact your Business
 
AMPifying your Drupal 8 Site : higher performance and higher engagement - Par...
AMPifying your Drupal 8 Site : higher performance and higher engagement - Par...AMPifying your Drupal 8 Site : higher performance and higher engagement - Par...
AMPifying your Drupal 8 Site : higher performance and higher engagement - Par...
 

Dernier

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 

Dernier (20)

Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 

Amp

  • 1. AMP(Accelerated Mobile Pages) A brief analysis for a typical Web Application
  • 2. AMP is an open-source library that provides a way to create web pages that are compelling, smooth, and load near instantaneously for users. AMP HTML : AMP HTML is HTML with some restrictions for reliable performance. It uses some of the AMP specific tags called AMP HTML components to make common patterns easy to implement in a performant way. AMP JS : The AMP JS library ensures the fast rendering of AMP HTML pages. It implements all of the AMP optimizations, provide custom-tags, makes everything that comes from external resources asynchronous and do the pre-calculation of the layout of every element on page before resources are loaded for fast rendering of the page. AMP Cache : 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.
  • 3. How AMP works!! 1. Execute all AMP JavaScript asynchronously. 2. Size all resources statically. 3. Don’t let extension mechanisms block rendering. 4. Keep all third-party JavaScript out of the critical path. 5. All CSS must be inline and size-bound. 6. Font triggering must be efficient. 7. Minimize style recalculations. 8. Only run GPU-accelerated animations. 9. Prioritize resource loading. 10. Load pages in an instant.
  • 4. Benefits ● Improve user engagement with fast and instant experience. ● Low Bounce rates. ● Mobile friendly and enhanced SEO(Search Engine Optimization).
  • 5. What allowed in AMP and What Isn’t Must Haves: ● start with the doctype <!doctype html>. ● contain a top-level <html ⚡> tag (<html amp> is accepted as well). ● contain <head> and <body> tags (They are optional in HTML). ● contain a <link rel="canonical" href="$SOME_URL"> tag inside their head that points to the regular HTML version of the AMP HTML document or to itself if no such HTML version exists. ● contain a <meta charset="utf-8"> tag as the first child of their head tag. ● contain a <meta name="viewport" content="width=device-width,minimum-scale=1"> tag inside their head tag. It's also recommended to include initial-scale=1. ● contain a <script async src="https://cdn.ampproject.org/v0.js"></script> tag inside their head tag. ● contain the AMP boilerplate code (head > style[amp-boilerplate] and noscript > style[amp- boilerplate]) in their head tag.
  • 6. NO Goes: ● No Javascript. ○ Have to use available amp component elements for interactivity ● No external CSS. ○ CSS from external src through link and inline style for element ● Disallowed CSS. ○ !important, filter attributes, and only transform, opacity animations ● Disallowed HTML. ○ Img, video, audio, iframe and form tags have alternates, but not allow frame, frameset, base, object, applet, embed.
  • 7. Limitations of Using AMP. ● Bootstrap framework doesn’t go with AMP. ● Custom css and external css cannot be more in size than the AMP limit of 50kb. ● All the multimedia components needs to have static layout, pre-defined. ● General script operations using Jquery and other external js’s are not allowed by AMP. ● May end up using more iframes to handle the external and custom written scripts. ● Customization of content will be hindered. For example usage of different font styles, third party sources and services etc.. ● Embed tag is prohibited.
  • 8. Hack around the Optimizations!! ● Load css and javascripts that are really been used for the page. ● Execute scripts async if possible. ● It doesn’t require that the page is fully valid AMP but can use some of the components it provide.