ext-all.js VS ext-all-debug.js
使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
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
提供了 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.
对于使用 ExtJS4.1 的用户,此信息已更改。
在实施和优化应用程序之后,我和许多人一样,对哪个流程最适合“生产实施”感到困惑。
最新的文档是 Sencha 上的文档:
http://docs.sencha.com/ext-js/ 4-1/#!/guide/getting_started
很难识别,但对我来说关键是第 3 步。部署应用程序。
为此执行以下四个步骤:
- 如果需要的话,也可以在构建之前对其进行修改。
- all-classes.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:
- it can also be modified prior to build, in case it is needed.
- all-classes.js is non min for review.
- app-all.js is the production ready file
Hope this helps someone. : )
“ext.js”和“ext-debug.js”之间的区别是:
这些文件在其他方面包含完全相同的代码。此外,两种风格都从“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:
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.