CodeIgniter Forums
How to develop AMP site while using php - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: How to develop AMP site while using php (/showthread.php?tid=78264)



How to develop AMP site while using php - Jeewakapk - 12-24-2020

hi,

can anyone tell me how to create AMP website while using CI4 framework?

PHP is server-side and AMP is client-side.

is there a way to use AMP on CI4?


RE: How to develop AMP site while using php - John_Betong - 12-25-2020

Basically an AMP web page consists of loading their own specific JavaScript file and their own specific CSS file which are always required in the HTML head section. Absolutely no other JavaScript script is allowed except their own scripts and additional CSS and HTML must conform to their standards.

Create a “Welcome_message” template with the the two AMP essential files and also shortcuts to their specific HTML validation utilities. Once validation is achieved use the template and add your own HTML and CSS scripts continually validating each incremental addition.

Many browsers have AMP validation utilities.

Remember that if the web page does not satisfy their strict standards then caching and preferential Google search will not be used.


RE: How to develop AMP site while using php - Jeewakapk - 12-26-2020

(12-25-2020, 03:40 PM)John_Betong Wrote: Basically an AMP web page consists of loading their own specific JavaScript file and their own specific CSS file which are always required in the HTML head section. Absolutely no other JavaScript script is allowed except their own scripts and additional CSS and HTML must conform to their standards.

Create a “Welcome_message” template with the the two AMP essential  files and also shortcuts to their specific HTML validation utilities. Once validation is achieved use the template and add your own HTML and CSS scripts continually validating  each incremental addition.

Many browsers have AMP validation utilities.

Remember that if the web page does not satisfy their strict standards then caching and preferential Google search will not be used.

Thank you, John.
Will check.