Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Using meta tag viewport in

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #207133
    JimMe
    Participant

    What are the disadvantages of using viewport tag in body?

    I am having a website(shopify) in which some pages are responsive and other are not.
    I append viewport tag in <head> only if the page is responsive.
    Now, the problem is that it loads desktop version first and after checking the page for responsive it loads mobile version, which is a very bad user experience.

    Adding viewport inside <body> solves this problem but I am not sure that this is valid HTML.

    #207134
    Paulie_D
    Member

    I am not sure that this is valid HTML.

    No it’s not.

    I append viewport tag in only if the page is responsive.
    Now, the problem is that it loads desktop version first and after checking the page for responsive it loads mobile version, which is a very bad user experience.

    This sounds like something else is wrong.

    #207163
    JimMe
    Participant

    Thanks for replying, can you suggest a cleaner fix for this.

    #207172
    Paulie_D
    Member

    Not really…your site should load properly based on the viewport tag and media queries.

    Without more information it’s hard to comment.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.