Welcome Guest, Not a member yet? Register   Sign In
On page CSS or JavaScript inclusion
#5

When the AmpProject.org was introduced I created an online utility to create an Amp template by sending the required JavaScript components by get numeric parameters. This was necessary because Amp does not validate pages if there are unused JavaScripts included in the page.

The controller checked the URL parameters and only selected the required JavaScript files then concatenated the relevant files which was inserted into the web page.


https://amphtmldemo.tk/create-template
Reply


Messages In This Thread
On page CSS or JavaScript inclusion - by pc87 - 09-26-2019, 11:42 PM
RE: On page CSS or JavaScript inclusion - by pc87 - 09-30-2019, 12:38 AM
RE: On page CSS or JavaScript inclusion - by John_Betong - 10-03-2019, 06:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB