Skip to content Skip to sidebar Skip to footer

Extjs, Is It Possible To Compress Load Ext-all.js?

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 s

Solution 1:

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

JS Builder Screen Shot

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


Solution 2:

I'd estimate that at 512k, the extjs load should be around 30 s - 1 minute.

If you're looking at a 4 minute load time, your time is probably spent somewhere other than the download of the library. Are you sure it's the size of your download, or even extjs that is the problem? Could it be that your webserver is under heavy load, or that you're dealing with a latency issue?

As far as reducing the size of the library - there isn't much more you can do. The library is provided in minified format, and stripping it further is not recommended. Zipping it up only means you'll have to unzip at the other end once downloaded, and doesn't buy you that much load time with a library that's already very small.


Post a Comment for "Extjs, Is It Possible To Compress Load Ext-all.js?"