WPTouch, Amp and Lighthouse
-
lighthouse reports the “Document doesn’t have a <title> element” in AMP pages, but this only happens when WPTouch Free is installed, and only for mobile reports. Running Lighthouse on the AMP page in desktop mode does not generate the issue whether Wptouch is installed or not.
It should be noted the “title” element is present in the code, and it will only fail with JavaScript:
var element = document.querySelector('title'); alert(element.text);Element will be NULL.
This cannot be easily tested with the “Health Check & Troubleshooting” plugin because different code will be generated when logged in as noted at “https://wordpress.org/support/topic/amp-title-mobile-vs-desktop/#post-14204576”.
The page I need help with: [log in to see the link]
The topic ‘WPTouch, Amp and Lighthouse’ is closed to new replies.