Invalid AMP due to Custom JS is not allowed
-
Hi Litespeed Support,
I got an issue with invalid AMP pages. I used AMP plugin by AMP Project Contributors.
When I tried to validate the AMP pages, I got an error with Custom JS is not allowed. This JS code below that causing the error.
Wondering if this JS code from Litespeed plugin? If yes, could you help me to fix the error?Thanks,
Amrilio<script data-no-optimize="1" defer>!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).LazyLoad=e()}(this,function(){"use strict";function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,a=arguments[e];for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t}).apply(this,arguments)}function i(t){return e({},it,t)}function o(t,e){var n,a="LazyLoad::Initialized",i=new t(e);try{n=new CustomEvent(a,{detail:...
The page I need help with: [log in to see the link]
- The topic ‘Invalid AMP due to Custom JS is not allowed’ is closed to new replies.