Jan 27, 2009, 6:49 AM
Coolite Resource file not been compressed
Hi Coolite team,
Long time we hanven't chat. Nice work with version 0.7. I'll be migrating soon, but for the moment my question is still regarding deployment and version 0.6.
I roamed through the forum and found many topics about this subject, but I am still not sure... It may be just my confusion.
Checking the version with Firebug and other plug-ins like (YSlow) I can see that the ext js is been rendered compressed, or better minified. This way...
//////////////////////////////////////////////////////////////////////////////// // http://.../WebResource.axd?d=2l8PQ_g...83424172187500 ////////////////////////////////////////////////////////////////////////////////
/*
* Ext JS Library 2.2
* Copyright(c) 2006-2008, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
Ext={version:"2.2"};window["undefined"]=window["undefined"];Ext.apply=function(C,D,B){if(B){Ext.apply(C,B)}if(C&&D&&typeof D=="object"){for(var A in D){C[A]=D[A]}}return C};(function(){var idSeed=0;var ua=navigator.userAgent.toLowerCase();var isStrict=document.compatMode=="CSS1Compat",isOpera=ua.indexOf("opera")>-1,isSafari=(/webkit|khtml/).test(ua),isSafari3=isSafari&&ua.indexOf("webkit/5")!=-1,isIE=!isOpera&&ua.indexOf("msie")>-1,isIE7=!isOpera&&ua.indexOf("msie 7")>-1,isGecko=!isSafari&&ua.indexOf("gecko")>-1,isGecko3=!isSafari&&ua.indexOf("rv:1.9")>-1,isBorderBox=isIE&&!isStrict,isWindows=(ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1),isMac=(ua.indexOf("macintosh")!=-1||ua.indexOf("mac os x")!=-1),isAir=(ua.index
...
Just bellow, I can see a Javascript like this (please note I am not using version 0.7 despite it setting it to 0.7)://////////////////////////////////////////////////////////////////////////////// // http://.../WebResource.axd?d=2l8PQ_g...83424172187500 ////////////////////////////////////////////////////////////////////////////////
/********
* @version: 0.6.0 - Professional Edition (Coolite Commercial License)
* @author: Coolite Inc. http://www.ext.net/
* @date: 2008-08-05
* @copyright: Copyright (c) 2006-2008, Coolite Inc. (http://www.ext.net/). All rights reserved.
* @license: See license.txt and http://www.ext.net/license/.
* @website: http://www.ext.net/
********/
if (!Ext.$) { Ext.$ = Ext.get; }
Ext.namespace("Coolite.Ext");
Coolite.Ext.Version = "0.7.0";
Coolite.Ext.FormViewport = Ext.extend(Ext.Container, {
initComponent: function() {
Coolite.Ext.FormViewport.superclass.initComponent.call(this);
var html = document.getElementsByTagName("html")[0];
html.className += " x-viewport";
html.style.height = "100%";
this.el = Ext.$(document.forms[0]);
this.el.setHeight = this.el.setWidth = this.el.setSize = Ext.emptyFn;
this.el.dom.scroll = "no";
this.allowDomMove = false;
this.autoWidth = this.autoHeight = true;
Ext.EventManager.onWindowResize(this.fireResize, this);
this.renderTo = this.el;
Ext.getBody().applyStyles({
overflow: "hidden",
margin: "0",
padding: "0",
border: "0px none",
height: "100%"
});
this.el.applyStyles({ height: "100%", width: "100%" });
},
fireResize: function(w, h) {
this.fireEvent("resize", this, w, h, w, h);
}
});
...
As you can see the first is minified and the secound which I assume is coming from coolite.axd is not. It is embedded and I checked all my web.config settings before ask this question. I am aware about IIS6 and IIS7 differences and the properties to render gzip, etc...my web.config:
<coolite cleanResourceUrl="false" gzip="true" scriptAdapter="Ext" renderScripts="Embedded"
renderStyles="Embedded" scriptMode="Release" theme="Gray" />
...
<add path="*/coolite.axd" verb="*" type="Coolite.Ext.Web.ResourceManager" validate="false" />
It may be that it is been gziped and just not minified and it is my misunderstanding, but I just want to make sure that is not possible to decrease the size and improve performance as I am facing some serious performance issues (not coolite fault).Also, it may be that it is just the way how Firebug (Yslow) is showing me the Javascript and I am doing anything wrong.
How can I make sure if it is really compressed?
Is there a way to minified the coolite javascript as it is for ExtJs?
Most important referecences I read:
http://www.ext.net/download/README.txt
http://forums.ext.net/showthread.php?postid=5479.aspx (and all links)
Thanks.