Jahia DX and AMP smoothly match!
Jahia Team
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, short 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 these factors is what does the trick. You can find more detailed information on all the technical specifications that make this performance possible over on Varvy.
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 allows users to be identified, and when combined with Jahia DX authentication, you can deliver protected and personalised 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, Jahia Solutions' online documentation platform.