Skip Lazyload on AMP Pages
-
Currently using AMP official plugin Version: 2.0.5 with Lazy Load for Videos.
On any amp page, e.g https://www.website.com/post-123/amp, videos don’t load. I see the following message: “Video can’t be loaded because JavaScript is disabled:” with my video Title and URL.
Things I tried:
1. Suppressing Lazy Load for Videos plugin from the WP AMP plugin suppression settings. Didn’t work, I think the AMP plugin loads after Lazy Load for Videos.2. Manually editing class-admin-options.php function text__no_script_fallback to contain just the video URL. I was hoping WP would normally process the URL and return a video. No luck.
3. Tested if page was AMP from functions.php. The added true/false tests in various locations on the plugin to not load.
Any ideas for skipping AMP pages? The plugin works great otherwise.
- The topic ‘Skip Lazyload on AMP Pages’ is closed to new replies.