Dojo too fat?
Hi, Please see the report below. Comments? Best Regards, Antonio Gallardo. Document Size - http://cocoon.zones.apache.org/demos/21branch/samples/blocks/forms/form1 Documents (1 file) 18 kb http://cocoon.zones.apache.org/demos/21branch/samples/blocks/forms/form1 18 kb Images (6 files)4 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/img/cal.gif 950 bytes http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/img/help.gif 868 bytes http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/img/delete.gif 842 bytes http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/img/move_down.gif 842 bytes http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/img/move_up.gif 842 bytes http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/img/close.gif 51 bytes Style Sheets (4 files) 11 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/htmlarea/htmlarea.css 4 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/css/forms-calendar.css 2 kb http://cocoon.zones.apache.org/demos/21branch/styles/main.css 2 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/css/forms.css 2 kb Scripts (13 files) 317 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/dojo/dojo.js 145 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/htmlarea/htmlarea.js 67 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/mattkruse-lib/CalendarPopup.js 34 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/mattkruse-lib/date.js 12 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/mattkruse-lib/selectbox.js 11 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/js/forms-lib.js 11 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/mattkruse-lib/PopupWindow.js 11 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/mattkruse-lib/OptionTransfer.js 8 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/mattkruse-lib/AnchorPosition.js 5 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/htmlarea/popupwin.js 4 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/htmlarea/lang/en.js 3 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/ajax/cocoon.js 3 kb http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/forms/htmlarea/dialog.js 2 kb Total 350 kb
Re: Dojo too fat?
Antonio Gallardo said the following on 04-04-2006 09:45: Hi, Please see the report below. Comments? http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/dojo/dojo.js 145 kb I've checked, this must be a slimmed version since the full version (aka kitchen sink) is 225 kb. I understand the worries, but I don't see an alternative. Other toolkits/frameworks were already rejected and growing our own is not a good idea. Bye, Helma
Re: Dojo too fat?
hepabolu wrote: Antonio Gallardo said the following on 04-04-2006 09:45: Hi, Please see the report below. Comments? http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/dojo/dojo.js 145 kb I've checked, this must be a slimmed version since the full version (aka kitchen sink) is 225 kb. I understand the worries, but I don't see an alternative. Other toolkits/frameworks were already rejected and growing our own is not a good idea. Bye, Helma If configured correctly, resources only need to be loaded to the client once and then the cached one is taken. -- Reinhard Pötz Independent Consultant, Trainer (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc ___ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
Re: Dojo too fat?
Antonio Gallardo wrote: Please see the report below. Comments? snip/ http://cocoon.zones.apache.org/demos/21branch/_cocoon/resources/dojo/dojo.js 145 kb Dojo is a highly modular toolkit, which can load new JS scripts on demand (using Ajax requests). However, loading individually each and every module leads to an important overhead in page load time. To solve this, Dojo provides a compressor [1] that assembles a set of modules (JS files) in an single dojo.js file and compresses it (removes whitespace and comments, shortens identifiers). Browsers will then cache this dojo.js file, so that only the first use is costly. The work of the compressor is driven by a profile where you describe what modules you want to integrate in that single file. For Cocoon, I used the widget profile which includes the base infrastructure and a number of widgets (see blocks/ajax/dojo/build.xml). The actual profile to be used in a production system should normally be adapted to the actual modules your application uses to achieve maximum performance. We cannot guess within Cocoon what this module set will be, but what we can do is define a profile containing only the Dojo features that are effectively used by what we provide (i.e. the widgets in the forms and ajax blocks). That may allow to have a smaller default dojo.js, while still leaving room for people to build their own version of dojo.jar with their own profile. BTW, Dojo's is very successful, and some CDNs are providing it [2], thus allowing applications to load the full dojo.js from a central location. One single cached JS files served by distributed servers for many unrelated web sites! [1] http://dojotoolkit.org/docs/compressor_system.html [2] http://blog.dojotoolkit.org/2006/01/30/dojo-iamalpha-and-cdns -- Sylvain Wallez http://bluxte.net Apache Software Foundation Member
Re: Dojo too fat?
Reinhard Poetz wrote: If configured correctly, resources only need to be loaded to the client once and then the cached one is taken. I think we should provide this correct configuration so users can just make use of it. Carsten -- Carsten Ziegeler - Open Source Group, SN AG http://www.s-und-n.de http://www.osoco.org/weblogs/rael/