extjs,是否可以压缩加载ext-all.js? [英] extjs, is it posible to compres load ext-all.js?

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

问题描述

对不起,如果我的英文不好,英语不是我的母语



我有一个使用extjs图书馆的网站。完全我只需要网格,ajax和树组件。

我的项目是在全国范围内使用的,为了避免在某些地区的低带宽问题,我必须尽可能的轻。 >

当我使用chrome中的开发者工具时,我的网站太重了。特别是当加载ext-all.js。加载(@ 512kbps)需要3,9分钟(即使我从网站上删除我自己的图像和CSS)。



有压缩方法吗?或者只是加载树,网格和ajax组件?

我是googling ..我得到这个

 < script type =text / javascriptsrc =js / ext-all.js?compression = gzip>< / script> 

但是没有什么帮助。

解决方案

这是显示如何构建自定义版本的ext-js的页面。

>

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





您需要自己找出依赖关系,祝你好运!


Sorry, if my english is bad, english is not my native language

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.

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).

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.

解决方案

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

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天全站免登陆