Lighthouse: Is viewport parsing working correctly?

Created on 11 Jul 2018  路  5Comments  路  Source: GoogleChrome/lighthouse

Hello,

I've hard times to figure out why viewport tags is not detected on https://www.fondan.co

Here is the tag :

Thx for your help,

Best,

needs-more-info pending-close

Most helpful comment

This doesn't appear specific to lighthouse. It looks like they're using Nuxt.js and have the meta tags injected in the SSR, as view source has them:

image

However, when testing in Chrome and Firefox (I didn't test other things), those tags aren't there (document.querySelectorAll("meta") returns an empty NodeList).

image

I'm not a vue expert, but my hunch is that vue-meta is mis-configured and updating the DOM, essentially removing the meta tags. According to the docs, you need to set <html data-vue-meta-server-rendered> to prevent this (see "How to prevent the update on the initial page render").

All 5 comments

It seems to be working properly, I don't see a meta[name=viewport] on that site either.

image

This doesn't appear specific to lighthouse. It looks like they're using Nuxt.js and have the meta tags injected in the SSR, as view source has them:

image

However, when testing in Chrome and Firefox (I didn't test other things), those tags aren't there (document.querySelectorAll("meta") returns an empty NodeList).

image

I'm not a vue expert, but my hunch is that vue-meta is mis-configured and updating the DOM, essentially removing the meta tags. According to the docs, you need to set <html data-vue-meta-server-rendered> to prevent this (see "How to prevent the update on the initial page render").

Hello Guys,

Thanks a lot for your help! It really helped me figure out why I had weird issues regarding PWA...
Actually I used NUXT.JS and after some days I found out that there is an opened bug regarding that issue : https://github.com/nuxt-community/nuxt-i18n/issues/100

Meanwhile seo = false fix my issue, I hope nuxt-i18n will fix that soon.

Best !

@klessou I believe this issue is resolved on the lighthouse part so this ticket can be closed? If not please let me know

Indeed it can be closed. Thx

Was this page helpful?
0 / 5 - 0 ratings