开发者

Determine if user is on server OS

I need a way to determine if user is on server OS or is using terminal connection (remote desktop) to view the site. I need this to turn off all animations and other stuff.

The best i can do is to determine os from UserAgent, but there is no difference between Windows 7 an开发者_Go百科d Windows Server 2008. I can check color depth on user machine also.

Is there a better way to do this?


The best way probably is not try to auto-detect the environment that is less capable of handling some visual effects but give the user the possibility to switch into a less resource-intensive mode with an option somewhere on the page.

Most of the server & remote desktop users are more advanced than typical desktop users and more often looking for possible performance improvements (I personally instinctively turn off all the visual effects whenever I am connecting via remote desktop to a machine), so they will be willing to accept the option and placed wisely it won't distract the others.

In case you really want to detect user agent's setup, you could probably somehow try to measure javascript's performance or color depth as you've written. But I would really avoid this if you can.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜