我如何优化IE浏览器? [英] How can I optimize for IE?

查看:138
本文介绍了我如何优化IE浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个JS沉重的应用程序,它在IE中运行缓慢。我将花费大约一周的时间来优化IE,我希望能够尝试一些方向。



我发现这个线程引用了滴水,这似乎很有用:



IE和内存在Javascript中的积累 p>

我正在寻找像使用for循环代替$ .each以及我可能不会使用的架构最佳实践的提示。



我正在使用的图书馆:



我已经在做的事情:使用for循环的


  • 而不是$ .each

  • 为常用引用的DOM元素缓存jQuery上下文
  • 使用Array.join()与字符串并置构建HTML



有什么建议?

谢谢!

解决方案

在IE浏览器中使用 JavaScript Profiler


I have a JS-heavy app and it runs slowly in IE. I'm about to spend about a week optimizing for IE, and I'd like some direction about things to try.

I found this thread referencing Drip, which seems useful:

IE and Memory accumulation in Javascript

I'm looking for tips like, "use for loops instead of $.each" as well as architectural best practices that I may not be using.

Libraries I'm using:

Things I'm already doing:

  • using for loops instead of $.each
  • caching jQuery contexts for commonly-referenced DOM elements
  • building HTML using Array.join() vs. string concatenation

Any suggestions?

Thanks!

解决方案

Use a JavaScript Profiler in IE

这篇关于我如何优化IE浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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