ext-all.js VS ext-all-debug.js

发布于 2024-11-29 18:19:12 字数 168 浏览 2 评论 0原文

使用 ext-all.js 和 ext-all-debug.js 有什么区别?

从 debug.js 更改为 ext-all.js 是否会提高性能?

我可以假设从调试文件切换到普通文件不会对应用程序产生任何其他影响吗?

另外,有人可以建议 ext-base.js 做什么吗?

What is the difference between using ext-all.js and ext-all-debug.js?

Does changing to ext-all.js from debug.js improve performance?

Can I assume that switching from debug to normal file will not have any other impacts on the application?

Also, can any one suggest what ext-base.js do?

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

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

发布评论

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

评论(4

乖乖 2024-12-06 18:19:12

Ext-all 基本上是调试版本的缩小版。好处是它大大减小了文件大小,从而减少了客户端的下载量。 ext-base是ext的核心功能。如果您只使用这些文件,您可以只包含该文件,而不是在 ext-all 中包含庞大的完整集。

在 ext 站点上曾经有一个自定义 js 构建器,您可以在其中选择您需要的功能,它会使用这些模块为您创建一个自定义 js

Ext-all is basically the minified verion of the debug one. The gain is that it greatly reduces the files size so that clients have to download less. Ext-base are the core functions of ext. If you only use those you could just include that file instead of the huge complete set in ext-all.

On the ext site there used to be a custom js builder where you would pick just the functions you need and it would create a custom js for you with just those modules

青衫负雪 2024-12-06 18:19:12

提供了 ext-all-debug 以便您可以通过 extjs 代码进行调试。它执行与 ext-all.js 完全相同的操作。使用 ext-all.js 将提高性能,因为文件的大小要小得多,因此客户端可以更快地下载和访问它们。

ext-base-debug 和 ext-base.js 的情况也是如此。其中包含 ext-all.js 所依赖的操作,例如 Ajax 操作。交换这些文件不会对您的应用程序产生任何影响。

在开发过程中使用 ext-all-debug 和 ext-base-debug。在生产环境中切换到 ext-all.js 和 ext-base.js。

Ext-all-debug is provided so that you can debug through the extjs code. It performs extactly the same operations that ext-all.js does. Using ext-all.js will improve performance since the size of the file is much smaller, hence clients can download and access them faster.

Same is the case with ext-base-debug and ext-base.js. These contain the operations on which ext-all.js depends on, for example Ajax operations. Interchanging these files will not have any effect on your application.

Use the ext-all-debug and ext-base-debug during development. Switch to ext-all.js and ext-base.js when in production.

淤浪 2024-12-06 18:19:12

对于使用 ExtJS4.1 的用户,此信息已更改。

在实施和优化应用程序之后,我和许多人一样,对哪个流程最适合“生产实施”感到困惑。

最新的文档是 Sencha 上的文档:
http://docs.sencha.com/ext-js/ 4-1/#!/guide/getting_started

很难识别,但对我来说关键是第 3 步。部署应用程序。

为此执行以下四个步骤:

  1. cd to root
  2. sencha create jsb - 这将创建所用类的清单。
    - 如果需要的话,也可以在构建之前对其进行修改。
  3. sencha build - 创建两个文件(all-classes.js,app-all.js)
    - all-classes.js 不适合审查。
    - app-all.js 是生产就绪文件
  4. 产品设置 - 这些是生产文件中所需的其余内容:
ext-all.css //minified-css,连接并除尘是最佳的。
ext/ext.js //非调试
app-all.js //缩小的、串联的、应用程序+框架文件(仅使用类)。

希望这对某人有帮助。 :)

THIS INFORMATION HAS CHANGED FOR THOSE USING ExtJS4.1.

After implementing and optimizing an application, I like many, was confused with which process was optimal for 'production implementation'.

This most current documentation for this turned out to be this document on Sencha:
http://docs.sencha.com/ext-js/4-1/#!/guide/getting_started

It was difficult to identify, but the key for me was step #3. Deploying Application.

For which these four steps are conducted:

  1. cd to root
  2. sencha create jsb - this creates a manifest of classes used.
    - it can also be modified prior to build, in case it is needed.
  3. sencha build - creates two files(all-classes.js, app-all.js)
    - all-classes.js is non min for review.
    - app-all.js is the production ready file
  4. Setup for prod - these are the remaining includes needed in your production file:
ext-all.css  //minified-css, concatenated and dusted is optimal.
ext/ext.js   //non-debug
app-all.js   //minified, concatenated, app + framework files (only classes used).

Hope this helps someone. : )

归属感 2024-12-06 18:19:12

“ext.js”和“ext-debug.js”之间的区别是:

  1. “ext-debug”未压缩(或“缩小”)。
  2. “ext-debug”不通过 Cmd 优化器运行。

这些文件在其他方面包含完全相同的代码。此外,两种风格都从“src”文件夹中下载所需的类。简而言之,这两个文件都是为了支持调试。

为了提高性能,要将下载的文件数量减少到尽可能少,您可以使用 Sencha Cmd。像这样的事情
sencha fs minify -yui -from=ext-debug.js -to=ext.js

对于 Cmd 主题 ext 4.2.2 文档集是最新的,您可以访问 dec 此处

希望这可以帮助您。

differences between "ext.js" and "ext-debug.js" are:

  1. "ext-debug" is not compressed (or "minified").
  2. "ext-debug" is not run through the Cmd optimizer.

These files otherwise contain exactly the same code. Further, both flavors download required classes from the "src" folder. In short, both of these files are intended to support debugging.

In order to improve the performance,To reduce the downloads to as few files as possible you can use Sencha Cmd. some thing like this
sencha fs minify -yui -from=ext-debug.js -to=ext.js

For Cmd topics ext 4.2.2 doc set is the more current and you can access the dec here

hope this may help you.

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