Let me ask you a question - how long do you wait for a mobile webpage to be loaded? Hold on. Let me tell you a fact, and then think twi...

Let me ask you a question - how long do you wait for a mobile webpage to be loaded? Hold on. Let me tell you a fact, and then think twice about your reply.

According to data collected by Google and SOASTA, 40% of visitors leave a page that takes longer than three seconds to load.

Three seconds!  Yeah, that's correct. 

That's all the time you've got in your hand to grab your user's attention. Do something magical so that your consumer doesn't lose their patience from your page. Otherwise, you'll fade away from the race.

The worst thing is that, according to econsultancy, most retail mobile sites take about 6.9 seconds to load, which is more than double the amount of moment 40 percent of customers wait before leaving the site.

So, what is the solution? This is where AMP arrives to get rid of this issue.
How! Let's discover that.

What is AMP?

AMP stands for the Accelerated Mobile Page. AMP is an open-source framework created by Google to guarantee that mobile web pages operate at optimum speed. It operates as an evolving instrument to provide optimized mobile pages to decrease page load times on mobile devices.

It allows you to build lightweight experiences for mobile by simplifying the HTML and following streamlined CSS rules. AMP pages are built with 3 core components: AMP HTML, AMP JS, and AMP Cache. AMP pages load on mobile devices almost immediately.

How AMP Works?


Before introducing AMP to the website, it is essential to understand how it operates. AMP follows easy algorithms to operate properly. Below I addressed how it works. Let's dig those steps;

  1. Allow Only Asynchronous Scripts: ​JavaScript can block DOM (Document Object Model) construction and delay page rendering. To keep JavaScript from delaying page rendering, AMP only allows asynchronous JavaScript. Instead of including author-written JavaScript, interactive page features are handled in custom AMP elements.
  2. Size All Resources Statically​​: All the external resources such as images, iframes, or ads must state their size in the HTML so that AMP can determine the size and position of each element before resources are downloaded.
  3. Don't Let Extension Mechanisms Block Rendering​​: AMP doesn't let its extension mechanisms block page rendering. It supports extensions for lightbox, Instagram embeds, tweet, etc. While these require additional HTTP requests, those requests do not block page layout and rendering.
  4. Keep All Third-Party JavaScript Out of the Critical Path​​: AMP pages often allow third-party JavaScript but only in sandboxed iframes. Although it restricted them to iframes, they don't block the execution of the main page. Even if they trigger multiple style recalculations, their tiny iframes have very little DOM.
  5. All CSS Must Be Inline and Size-Bound​​: CSS blocks all rendering, it prevents page load as well. In AMP HTML pages, only inline styles are allowed. This removes one or often more HTTP requests from the critical rendering path so that it can't slow down the execution time.
  6. Font Triggering Must Be Efficient​​: AMP can declare zero HTTP requests until fonts start downloading because all JS in AMP has the async attribute and only inline style sheets are allowed; no HTTP requests are blocking the browser from downloading fonts.
  7. Minimize Style Recalculations​​: When an event takes place, it triggers style recalculations, which are time-consuming because the browser has to adjust the entire page layout. In AMP pages, all DOM reads happen first before all the writes. This ensures there's the max of one recalculation of styles per frame.
  8. Only Run GPU-Accelerated Animations​​: As GPU knows how to perform some things on the layers, the only way to have fast optimizations is to run them on the GPU. The rules for animation-related CSS ensure that animations can be GPU-accelerated. Specifically, AMP only allows animating and transitioning on transform and opacity so that page layout isn't required.
  9. Prioritize Resource Loading​​: If AMP downloads any resources, it optimizes downloads so that the most valuable resources are downloaded first.​ AMP also prefetches lazy-loaded resources. Resources are loaded as late as possible but prefetched as early as possible.

 What Type of Content Works Best Using AMP?

Google AMP is most suitable for:

  • News articles
  • Blog pages
  • Recipe pages
  • Product listings
  • Product pages
  • Classifieds listings
  • Classified ad pages

Pros & Cons of AMP


Now, let's discuss the pros and cons of Joomla AMP. Firstly, let me describe the pros of AMP.

  1. Speed​: Speed is the main concern for every website owner. If it takes too much time to load content, the visitor will leave your site for sure. AMP can really help you in these circumstances as it helps to show your content within less than a second.
  2. Better Rankings​​: According to Google, speed is one of the key features to rank content. AMP boosts a site with blazing speed. So better ranking comes with this better speed. After all, Google is creating this program, and they want people to use it.
  3. Fast Loading Pages Featuring Only Key Content​​: Its better optimized to load the things that are most important on your website first and then load other things. All you need to do is sorting out which content you want to prioritize. So, optimize your pages as much as possible.
  4. Improved User Experience​​: Your user will get a much faster load process if you use AMP on your site. Moreover, they're going to have less of the things that they don't need because AMP cut down unnecessary contexts that reader will need or care about.
  5. Very Mobile Friendly Display​​: Your images, videos, and animations are going to show up exactly where you want to show, and they are going to be exactly the size as you want, so you will get perfection and satisfaction.
  6. Decreased Bounce Rates​​: Bounce rate reflects the proportion of individuals who visit one of your websites and then leave the website without clicking anywhere else. Slow-loading websites are one of the primary culprits for the high mobile bounce rate. AMP pages significantly lower bounce rates by rapidly rendering the website, thus enhancing the rank of the website.

Cons


There is no unmixed blessings on earth. So, it has some of its cons too. Now let me discuss the most obvious cons of AMP.

  1. ​No Ad Revenue​: You would not get any advertisement revenue, because it gets rid of all of the extra things that you don't actually need on the website. What that means is ads are going to be stripped out as well.
  2. Google Analytics​ Complication: Your website's mobile version will face some analytics issue as it's not the same as your traditional one, and it doesn't have the analytics characteristics added. AMPs don't operate with your already implemented monitoring. They are stored and monitored differently from normal websites.
  3. Content Variation between Desktop and Mobile​​: Finally, you will have trouble with differences between the desktop and mobile versions of a website. Your viewers are going to see differences if they look at the desktop version and the mobile versions of your website.

Top 3 Joomla AMP Extensions 

There are several AMP extensions available for Joomla website. You can use any of them. I am going to describe the most popular three extensions among them. So, let's explore them with their amazing features. 

1. JAmp

JAmp is one of the most used extensions for Joomla. The price of JAmp is 49 Euro. Let's have a look on its feature list;

  1. ​Automatic Conversion​: It automatically converts your Joomla contents into the AMP HTML markup.
  2. Automated Submission​: It automatically submits AMP links to Google for indexing through a unique meta tag.
  3. Support for Font Awesome​​: You can embed the Font Awesome styles and include Font Awesome icons in your AMP pages.
  4. Highly Customizable​: You can customize the theme, colors, logo, titles, and the integration with third-party extensions by using it.
  5. AMP Components​​: You can take advantage of AMP Web Components such as Menu, Google Analytics, Sidebar, Lightbox, YouTube, Social Media, and even for AMP story.
  6. Metadata Management​​: JAmp manages JSON-LD metadata for AMP, Open Graph, Schema.org, and Twitter Card.
  7. Google AMP Cache​​: It takes advantage of the Google AMP Cache so that it can render every AMP page instantly.
  8. Debug Mode​​: You can quickly test the AMP version of each AMP enabled page and test the validation on the Google AMP Test website. It also previews the AMP page rendering through a mobile emulator window.

2. wbAMP

The price is $44 for a year subscription. And if you want your AMP page style with a custom theme, you can get it for $69 a year. Let's check the features of wbAMP;

  1. Automatic Conversion​: wbAMP converts every Joomla pages into Accelerated Mobile Pages HTML markup automatically.
  2. Content Handling​​: It can handle popular media or social content such as images, Facebook, Youtube, etc. or even AMP carousel.
  3. Manual Customization​​: You can manually customize the output with simple tags entered in your articles. You can hide or show any content you want to on AMP pages.
  4. Menu and Footer Customization​: It allows to add navigation and footer by selecting a custom Joomla module. Content is also converted to AMP standard, with the amp-sidebar element.
  5. Social Sharing Support​: It enables social sharing supports. You can get every social sharing sites support like Facebook, Tweeter, YouTube, and so on.
  6. Google Analytics Support​​: Most amazing part of this extension is to get analytics support that means you can see your visitor numbers and their sum of spending time on your site.

3. Accelerated Mobile Pages

The price of the Accelerated Mobile Pages is $39. Let's explore the feature list of this extension;

  1. ​Fully Customizable: You can customize its header, footer, title, theme, color, etc. with a minimal effort.
  2. Show Ads on AMP Pages​​: It allows to show ads on AMP pages. This feature makes it distinct from others.
  3. Show AMP Components​​: Display social share buttons on AMP pages, for instance, Facebook, Google+, Tweeter, etc. It enables lightbox for images on AMP pages. It helps to show YouTube video on AMP pages.
  4. Display Menubar​​: It displays Joomla Menu bar on AMP pages to enhance the user experience of your website. It helps to set menubar with settings to minimize your effort and time consumption.
  5. Google Analytics​​: It enables Google Analytics so that you can track your visitors on your site.

How to Install AMP on Joomla?

To install AMP on your Joomla website, you don't need to worry. Just stay back and follow the below steps;

Step 01: Download 

Download the following files. You can download it from weeblr.

  1. wbAMP (full version)
  2. com_djclassifieds wbAMP support
  3. Joomla AMP Theme

Step 02: installation 

Go to Extension > Manage > Install > Upload Package Files to install your downloaded files on your Joomla website. You will get a successful message after successful installation.

Step 03: Plugin Configuration 

Go to Extensions > Plugin. Find the "wbAMP" plugin on the list and edit.

Note: Select "Development" mode on operation mode configuration. Once you finish configuration and you will be sure your AMP pages are valid, then you can switch to "Normal." When "Development" mode is enabled, AMP pages can be displayed on your site, but they will be not visible for Google bots.

Step 04: Select Pages Configuration

If you want to display AMP pages for all Joomla blog category and article pagesconfigure the settings by following the below steps;

Com_content category: ​Select categories for which you want to display AMP pages.
Article id: Type ​Id of articles to display AMP pages for selected articles only. Type "*" to choose any article.
View: Select views for which you want to display AMP pages, you can choose "category," "article" or both.
Menu Item: ​Select menu items to display AMP pages for selected menu items only.

A​MP pages taken from DJ-Classifieds content:

Component: ​Choose "DJ-Classifieds"
View: Select views for which you want to display AMP pages, you can choose "items," "item" or both
Menu item: ​Select menu items to display AMP pages for selected menu items only
Category query var: ​Type "cid" as DJ-Classifieds category query var if you want to display AMP pages for selected categories

Value: ​Type id of DJ-Classifieds categories for which you want to display AMP pages (comma separated)
Item query var: ​Type "id" as DJ-Classifieds item query var if you want to display AMP pages for selected items
Value: ​Type id of DJ-Classifieds items for which you want to display AMP pages (comma separated)

Step 05: Meta Data Configuration

​The top part of the layout is the header, which can display your log, site name, etc. 

The name of the site and/or the picture of the site you specify will be displayed centered across the page and link to the site's home page. If you set an image, use the AMP specification to indicate its width and height.

Note: You must setup publisher information. This will be added by wbAMP to the meta data of your AMP pages, and should help consolidating authority of your organization.

Step 06: Analytics Configuration

It is very important to track how your Accelerated mobile pages are used, especially for something as new as AMP. 

The specification allows for using multiple analytics services providers, but currently only Google Analytics and Google Tag Manager support is handled by wbAMP. Configure Analytics tab to track your AMP pages.

Step 07: Custom Elements Configuration

wbAMP can automatically insert in your Accelerated Mobile Pages a set of sharing social buttons, including at the moment:

  • Facebook share
  • Twitter share
  • Google+ share
  • LinkedIn share

The settings on this page lets you select which button to display, where - before or after the main content of the page and a combination of styles and theme.

Custom links - DJ-Classifieds requires some additional AMP scripts to work properly. Copy and paste the following scripts into that field:

<script async custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.1.js"></script>
<script async custom-element="amp-accordion" src="https://cdn.ampproject.org/v0/amp-accordion-0.1.js"></script>
<script async custom-element="amp-youtube" src="https://cdn.ampproject.org/v0/amp-youtube-0.1.js"></script>
<script async custom-element="amp-vimeo" src="https://cdn.ampproject.org/v0/amp-vimeo-0.1.js"></script>
<script async custom-element="amp-iframe" src="https://cdn.ampproject.org/v0/amp-iframe-0.1.js"></script> 

Step 08: Ads Networks Configuration

​wbAMP has extensive support for inserting Ads in your Accelerated Mobile Pages. By default, the Ads network settings are global, ie, the same network will be used throughout all AMP pages. 

But you can also manually insert ads from any ad networks the AMP project supports by means of tags in your content.

Step 09: Cleanup Configuration

Under the wbAMP Configuration Cleanup tab, you will discover options to allow you to remove unwanted content or disable plugins that can produce unwanted content in the first location.

Step 10: Advanced Configuration 

This settings tab for wbAMP includes sophisticated characteristics. It shouldn't be necessary to change those options for most sites, but offer you a lot of power and control when needed.

Done!

Conclusion

Do you need any further information? Don't hesitate to ask us. Do you think any significant issue I missed out? Let us know if I did. Eventually, this Complete AMP Guide article is dedicated to enhancing your productivity. So, put your thoughts regarding the article through the comment box below.