Javascript:为什么我们的网站在终端服务会话中速度极慢? [英] Javascript: why is our website extremely slow in a Terminal Services session?

查看:103
本文介绍了Javascript:为什么我们的网站在终端服务会话中速度极慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们创建了一个严重依赖Javascript的网站,并且拥有相当多的DOM元素。

We created a website that relies heavily on Javascript and has quite a lot of DOM-elements.

在所有浏览器中,即使是IE7和IE8,这也可以。
在IE9,Chrome和Firefox中,用户体验更快,响应更快,但即使是使用IE7的客户也不会抱怨。

In all browsers, even IE7 and IE8, this works fine. The user experience is a bit faster and more responsive in IE9, Chrome and Firefox, but even our clients that use IE7 don't complain.

但是。 ..使用远程桌面的客户抱怨我们的网站很多太慢,即使在Windows 2008 Server(64位)上使用IE9也是如此。一些通常只需1秒钟加载的页面,现在需要30秒!原因不是互联网连接缓慢,其他网站加载速度很慢,只有我们的网站没有。当这些客户使用Chrome时速度非常快,所以问题就出现在远程桌面和IE的组合中。

BUT... clients that use a remote desktop complain that our website is much too slow, even when using IE9 on Windows 2008 Server (64-bit). Some pages that normally take only 1 second to load, now take up to 30 seconds! The reason is not a slow internet connection, other websites load quickly, only our website doesn't. And when these clients use Chrome it's very fast, so the problem is somehow in the combination of remote desktop and IE.

现在出现了奇怪的部分:当按钮兼容模式在IE9中被点击,我们的网站又快了!

Now here comes the strange part : when the button "compatibility mode" is clicked in IE9, our website is fast again!

什么可能导致速度的这些极端差异?

What could cause these extreme differences in speed?

我们认为在IE9中使用<!DOCTYPE html> 是最好的做法,但似乎在远程桌面会话以某种方式我们应该使用quirks-mode或强制兼容模式?

We thought using <!DOCTYPE html> in IE9 was the best practice, but it seems that in a remote desktop session somehow we should use quirks-mode or force compatibility mode??

有关这个主题的任何想法吗?

Any thoughts on this subject?

UPDATE

UPDATE

我们找到了一个解决方案:禁用IE9的CSS圆角!

(见接受的答案)

We found a solution : disabling CSS rounded corners for IE9 !
(see the accepted answer)

推荐答案

我们终于找到了延误背后的原因!

We finally found out the reason behind the delays !

我们使用Jquery UI,其主题有许多圆角(使用CSS)。

We use Jquery UI with a theme that has many rounded corners (using CSS).

圆角使IE9在终端服务会话中暂停!
(IE10似乎没有同样的问题)。

The rounded corners bring IE9 to a grinding halt in a Terminal Services session!! (IE10 doesn't seem to have this same problem).

不幸的是,没有办法检测是否有人使用终端服务,因为微软足够愚蠢为Windows 7和Windows 2008 Server(!)使用相同的浏览器版本号,因此我们决定在IE9上为所有使用IE9的用户禁用圆角。

Unfortunately there's no way to detect if someone is using Terminal Services, because Microsoft was stupid enough to use the same browser version number for Windows 7 and Windows 2008 Server (!), so we decided to disable rounded corners on our website for all users with IE9.

这篇关于Javascript:为什么我们的网站在终端服务会话中速度极慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆