Tuesday 7 January 2014

Minimize EXT framework download time on browser


EXT framework library(ext-all.js) was around 1.5MB and was taking around 30 seconds for first browser request to download the file which was freezing screen.

Even after enabling the gzip on tomcat server it was not making any effect.
The workaround is to create minimal footprint build using sencha commands.

Example:
sencha compile -classpath=my.js,../src concat -yui ext.js


More details on sencha command @ http://docs.sencha.com/extjs/4.2.2/#!/guide/command