#99 – Error Custom JavaScript is not allowed

Posted in ‘Presale’
This is a public ticket. Everybody will be able to see its contents. Only enter usernames, passwords or any other sensitive information in the Private information field.
Thursday, 19 July 2018 22:36 UTC
santiagocastillo
Estimados solicito ayuda. Me figura un error en version pamelan.cl/amp/
 
AMP Validator
Line Column Issue
304 0 Custom JavaScript is not allowed. Debug. Learn more.

304 334 Custom JavaScript is not allowed. Debug. Learn more.


Your text to link here...


Agradecido de su atención les saluda Santiago Castillo
scastil2007@gmail.com
 
Friday, 20 July 2018 08:09 UTC
wb_weeblrpress
HI

Please use English for all conversation here, that's the only way we can provide support and it benefits all readers! Thanks.

The page you link to has some javascript added by your server or CDN, at the end of the page:

<script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}),_trfd.push({'ap':'cpbh'},{'server':'a2plvcpnl84901'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'></script></html>


Having such javascript is not allowed by the AMP specification and it will be break all your pages. As you can see in the comment, it says:

Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.

So I would suggest you contact your web hosting company and tell them this javascript breaks all AMP pages on their servers.

Best regards


 
Saturday, 04 August 2018 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.