我怎样才能减轻这个页面的重量? [英] How can I reduce the weight of this page?

查看:77
本文介绍了我怎样才能减轻这个页面的重量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

发布所有代码真是bizzare(1200行或多或少),所以我创建了一个小提琴对于这个。

Post all the code is really bizzare (1200 line more or less) so I create a fiddle for this.

当我尝试使用Firebugs或其他工具(它真的被冻结)管理DOM上的项目时,整个页面非常慢。

The whole page is really slow, also when I try to manage items on the DOM with Firebugs or others tools (it's really frozen).

所以我认为最好的方法是优化HTML-CSS(实际上,删除CSS定义的页面速度会更快)。

So I think the best way is to optimize the HTML-CSS (in fact, removing the CSS definition the page back really faster).

我没有谈论加载页面,但是在加载页面时浏览/编辑项目(实际上,尝试用萤火虫将其整理出来,例如,您会立即看到;您也会注意到它也在小提琴上)。

I don't speak about loading the page, but navigate/edit item when the page is loaded (really, try to sort it out with firebug for example, you will see immediatly; you will notice it also on fiddle too).

推荐答案

不是一次编辑所有内容,只需点击编辑链接即可进入编辑模式asp.net样式)或当你点击行本身(devexpress样式),然后只显示你对该行的编辑内容。

Instead of having everything editable at once, only go in editing mode once you click an edit link for the row (asp.net style) or when you click on the row itself (devexpress style), and only then show your editing stuff for that row only.

最简单的方法页更快的是从中移除控件:)

The easiest way to make pages faster is to remove the controls from it :)

这篇关于我怎样才能减轻这个页面的重量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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