CodeIgniter Forums
Anybody using "Accelerated Mobile Pages" AmpProject from Google - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Anybody using "Accelerated Mobile Pages" AmpProject from Google (/showthread.php?tid=64759)



Anybody using "Accelerated Mobile Pages" AmpProject from Google - John_Betong - 03-22-2016

I am in the process of updating a site with Google AMP

First may I say searching for AMP is about as good as searching for Google's GO - infuriating Sad

Google has gone their own sweet way and totally ignored HTML, CSS Standards, etc. making it very difficult to easily update CodeIgniter.

The first attempt was a disaster and produced over 565 AMP pages with errors!!!

Most common problem was using the following  embedded img style (which satisfied most of Google Mobile Friendly Pages) :

Code:
<img style"max-width:888px; width:88%; margin:auto">

Also there were other problems in the common header, menu, content and footer files.

Fortunately it was quite easy to revert to the original setup which consisted of the including a header, imported database data for the content and a footer.

Further thought about separation of concerns produced the following:


Web-Page for testing:
  1. index-001.php
Include files:
  1. _heading-amp.php
  2. _header-amp-static.php
  3. _menu-top.php
  4. _content-to-test.php
  5. _footer,php

Quote:
Online Demo
- Can also test AMP validation using Chrome Browser ONLY 


Anyone have suggestions?