Extjs 3 到 Extjs 4

发布于 2024-11-19 10:29:36 字数 1435 浏览 6 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

糖果控 2024-11-26 10:29:36

ExtJS 4.0 有性能问题,

ExtJS 4.0.2 是您需要的修复大多数性能问题的版本,但它仍然很慢...

Google for ExtJS 4 性能

ExtJS 4.0 has performance issues,

ExtJS 4.0.2 is the release you need that fixes most performance issues, it is still slow though...

Google for ExtJS 4 performance

巷雨优美回忆 2024-11-26 10:29:36

您是否忘记关闭动态资源加载?请注意,ext*-all.js 将显着加快页面加载速度。

Did you forget to turn off dynamic resource loading? Note that ext*-all.js will speed up your page loading dramatically.

梦言归人 2024-11-26 10:29:36

ExtJS 4 比 ExtJS 3 快得多。sencha 的人解决了很多渲染问题并大大提高了性能。

在示例链接中,只需阅读部署部分。开发中的性能问题是正常的,因为在第 4 版中引入了 ext loader,使用框架的具体短文件而不是加载大文件(超过 100k 行)进行调试和开发要好得多,而且您始终知道问题出在哪里是。

在生产中,您需要使用 Sencha SDK,它将生成您的应用程序初始所需的 js 以及 extjs 依赖项。它比第三个版本要好得多,第三个版本需要加载所有框架。

ExtJS 4 is much faster than ExtJS 3. Guys from sencha solved a lot of rendering problems and improved performance greatly.

In the sample link just read the deployment section. The performance there is normal issue for development as in 4th version was introduced ext loader and it is much better for debugging and development using concrete short files of the framework instead of loading big files (more than 100k lines) and you always knows where the problems are.

In production you need to use Sencha SDK which will generate yours application initial required js plus extjs dependencies. It is much better than it was in 3rd version where you need to load all the framework.

哥,最终变帅啦 2024-11-26 10:29:36

您可以运行 Sencha CMD,这是一个 ruby​​ gem,它可以动态创建您的 ExtJS 4 css 文件,允许您将完整的 css 文件(~ 500kb!)削减到不那么荒谬的程度。

我在四月份在这里概述了这个过程 https://docs.google.com/document/d/1lGfbEoktJNhIpZneeJ2kkjNKOaSYpOse3mnSA5mGEds/edit?usp=sharing

You can run Sencha CMD, a ruby gem which dynamically creates your ExtJS 4 css file, allowing you to cut the full css file (~ 500kb !) down to something less ridiculous.

I have outlined this process in April here https://docs.google.com/document/d/1lGfbEoktJNhIpZneeJ2kkjNKOaSYpOse3mnSA5mGEds/edit?usp=sharing

橘虞初梦 2024-11-26 10:29:36

Extjs 4.1 解决了许多与布局相关的问题。如果您有嵌套面板,与 Ext 3 相比,渲染效果更好。

Extjs 4.1 is resolved many issues related to the layouts. If you have nested panels, does better rendering when compared to the Ext 3.

冷清清 2024-11-26 10:29:36
  1. 似乎回复晚了,但事实是 ExtJS 4.x 比 ExtJS 3.x 版本快得多,而且它使前端开发人员可以使用 MVC 模式方法创建他们的应用程序来组织他们的编码结构更多更清晰可维护。
  2. ExtJS 4.x 解决了渲染问题,并提高了浏览器兼容性的性能。
  3. 回答你的问题,可能有以下多种原因。
    1. 使用开发者工具检查一下,与 extjs 3.x 相比,js 文件的哪一部分需要更多时间加载
    2. 您可能正在使用更多的内部组件(向父组件添加更多项目以及具有更多子组件的子组件等)。
    3. 您甚至可以使用新推出的 Sencha SDK 工具(在此处下载)使任何 Ext JS 4 应用程序的部署比以往更容易。这些工具允许您以 JSB3(JSBuilder 文件格式)文件的形式生成所有 JavaScript 依赖项的清单,并创建仅包含您的应用程序所需的代码的自定义构建。

注意:这完全取决于您如何设计应用程序(架构师)。

谢谢

  1. It may seems to be late reply, but the truth is ExtJS 4.x is much fast than ExtJS 3.x version, more over it made front-end developer to create their application with a MVC pattern approach to organize their coding structure much more clearer an maintainable.
  2. ExtJS 4.x solve rendering problems an improved in performance over browser compatibility also.
  3. To answer your question, it may be many reason as stated below.
    1. Check with the developer tool, which part of js file taking more time to load as compare to extjs 3.x
    2. you may be using more inner components(adding more items to parents and child component having more sub-components,etc).
    3. Even you can use the newly-introduced Sencha SDK Tools (download here) makes deployment of any Ext JS 4 application easier than ever. The tools allow you to generate a manifest of all JavaScript dependencies in the form of a JSB3 (JSBuilder file format) file, and create a custom build containing only the code that your application needs.

Note: Its all depends on, how you design your application (Architect).

Thanks

无声情话 2024-11-26 10:29:36

与 ExtJS 3.x 相比,ExtJS 4.x 包含很多错误。我在不同的项目中使用两者。例如4.0.7到目前为止包含文件上传问题所以我想告诉我的意见
extjs 3.x 是 extjs 框架的更稳定版本。

ExtJS 4.x is contain lot of bugs in comparison ExtJS 3.x. I am using both in my different project. for example 4.0.7 contain file upload issue till now so i want to tells my opinion
extjs 3.x is more stable release of extjs frame work.

于我来说 2024-11-26 10:29:36

使用Extjs4.0或更高版本的MVC功能
将商店视图模型控制器放在不同的文件夹中
并使用控制器调用它们。

Use MVC feature of Extjs4.0 or later version
put store views model controller in different folder
and call them using controller.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文