extjs,是否可以压缩负载ext-all.js? [英] extjs, is it possible to compress load ext-all.js?

查看:72
本文介绍了extjs,是否可以压缩负载ext-all.js?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用extjs librar的网站.确实,我只需要网格,ajax和树组件.
我的项目在全国范围内使用,为避免某些地区由于带宽不足而引起的问题,我必须使其尽可能轻.

I have a website that's using the extjs librar. Exactly I just need grid, ajax and tree component.
My project is used nationally, and to avoid problems due to low bandwith in the some regions, I must to make it as light as possible.

当我在chrome中使用开发人员工具时,我的网站太重了.尤其是在加载ext-all.js时.加载(@ 512kbps)大约需要3.9分钟,(即使我从网站上删除了自己的图片和CSS也是如此).

When I use the developer tools in chrome, my site is too heavy. Especially when loading ext-all.js. It take 3,9 minutes to load(@512kbps), (even when I remove my own images and css from the website).

有没有办法压缩它?还是只加载树,网格和ajax组件?
我正在谷歌搜索..,我得到了

Is there a way to compress it? Or to just load the tree, grid and ajax components?
I was googling.. and I got this

<script type="text/javascript" src="js/ext-all.js?compression=gzip"></script>

但是,并没有太大帮助.

but, it didn't help much.

推荐答案

此页面向您展示如何构建ext-js的自定义版本. http://www.sencha.com/learn/Tutorial:Building_Ext_From_Source

This is the page that shows you how to build custom versions of ext-js. http://www.sencha.com/learn/Tutorial:Building_Ext_From_Source

他们有一个指向在线构建器的链接,该链接可自定义下载,但已将其删除.提到的链接仍然指向良好的资源,例如 JsBuilder (它们用于生成工具)ext-all.js和分发中的其他软件包.只需打开ext.jsb即可查看其工作原理

They had a link to an online builder that would customize the download but it's been taken down. The link mentioned still points to good resources like JsBuilder, the tool they use to generate ext-all.js and the other packages in the distribution. Just open the ext.jsb to see how it works

不过,您需要自己弄清楚这些依赖项,祝您好运!

You'll need to figure out the dependencies on your own though, good luck!

这篇关于extjs,是否可以压缩负载ext-all.js?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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