0

I am trying to use the viewport tag. It is like this <meta name = "viewport" content = " width=device-width, height = device-height, initial-scale=1, maximum-scale =1, minimum-scale =1, user-scalable=no"> I am wondering since I disabled the zooming capabilities with the help of maximum-scale and minimum-scale. Can I remove the user-scalable =no altogether? Will there be any performant issues if I keep attributes in tags which are unnecessary?

Thanks,

gates
  • 4,465
  • 7
  • 32
  • 60

1 Answers1

0

Yes, you can remove the user-scalable=no.

"minimum-scale=1, maximum-scale=1" and "user-scalable=no" have same effect.

By the way, there will be no performance issues if you keep both attributes
but for cleaner codes just use one not both.

Alberto I.N.J.
  • 1,855
  • 14
  • 19
  • Can you please point to some links that can give some authority to your answer. If done, I'll be happy to accept your answer – gates Jun 18 '15 at 12:53
  • @gates Check out: http://stackoverflow.com/questions/22777734/what-is-initial-scale-user-scalable-minimum-scale-maximum-scale-attribute-in – Alberto I.N.J. Jun 18 '15 at 12:58
  • @gates By the way, I am currently developing a web app which is mobile responsive. So, I was able to try it. – Alberto I.N.J. Jun 18 '15 at 13:05