Jahia DX and AMP smoothly match !


AMP stands for Accelerated Mobile Page, a new way to publish optimized content for mobile devices. Let's see why Jahia DX is already prepared for it.

What is AMP ?

AMP, shorten for AMP HTML, is a specification that allows quick loading of content, especially for mobile browsing. This specification is supported by Google that already provides a cache to fast-distribute AMP content.

Technically, AMP is a lightweight HTML page with dedicated scripts and format. If you want to see what can be done within an AMP page, you can have a look at these examples.

How can it be that fast?

First, an AMP page cannot exceed 50 kilobytes. Second - thanks to the scripts used and page structure, all resources are loaded asynchronously. Finally Google caches it for you.

The combination of all of it makes the work. You can get on Varvy more detailed information on all technical specifications that enable the speed achievement.

Jahia DX Integration

As described in the AMP project specifications, “AMP HTML is a subset of HTML for authoring content pages such as news articles in a way that guarantees certain baseline performance characteristics.”

Jahia DX is already able to create a dedicated rendering for your existing contents.

For example, let's take the Jahia Digitall Demo's news. We currently have a base that defines the structure of the page, and we set a detail view for the news.

To generate the AMP content template, we simply have to do the same, go to Jahia DX studio, create a new AMP content template for the news, set on it the default AMP structure view with our Jahia DX tags and finally make a specific view for the news itself.

Jahia DX generates some unwanted content for its resource, a simple render filter cleans it, and it is done !

What's next?

    •    Handle structured content: Filters can be added to inline css, transform image reference, links, etc ..
    •    Use Jahia DX fallback view mechanism to use existing views instead of creating all of them.

Going further

AMP offers the possibility to be identified as a user, mix with Jahia DX authentication to deliver protected and personalized content.
You can also use Jahia DX external data capabilities to expose any of your external resource as an AMP page.

Finally, you can also read a detailed documentation on AMP integration into Jahia DX published on Jahia Academy, the online documentation platform of Jahia Solutions.

Author : David Griffon