- no external files other than media (e.g. images, videos) are loaded
- therefore only inline styles are allowed
- external js sources (e.g. tracking, zendesk support, social sharing) need to be implemented using amp-components
- pages need to have a canonical link to the already existing pages to gain their ranking and authority
- to get shown in the ranking, pages need to be validated against a validator
Find out, what needs to be done, to improve the load time of static pages in babbel. Our example is the best visited magazine page. 3 main questions need to be answered:
- Can we use this approach at all without reducing the required functionality (tracking, external services (zendesk, disqus), social sharing)?
- What issues do we have with the current build process and how could they be mitigated?
- What are the next steps to be taken to get there?
Yes, BUT there is a lot that still needs to be tackled.
TL;DR Tracking could not be implemented due to missing prerequisites. In the build process, several changes need to be implemented (statamic's markdown parser), duplication of content can not be avoided and steps in between need to be added to get to the wished result...
During the implementation and evaluation we ran into many issues, that will be listed here:
- the styles served for the magazine are so huge, that we do not get a valid page for it => use cascada.css
- images inside content
- can not be rendered as
amp-img
tags yet (needs to be implemented into the parser used by statamic) - dimensions are unknown, which also makes the page not validated
- can not be rendered as
- for every external service specific prerequisites need to be met
- google tag manager
- there is an existing component already available
- special
AMP
container needs to be setup on GTM
- disqus
- there is an existing component already available
- special account (valid for multiple domains needs to be available) needed
- serving an custom, external JS from another domain
- social sharing
- there is an existing component already available
- can be integrated easily
- internal custom tracking
- no component available
- needs to be developed in contact with google