[Dojo-interest] dojo.require(), Shrinksafe and compression
mail at dylans.org
Mon Dec 17 16:47:18 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
The Dojo build system gives you ShrinkSafe's capabilities automatically,
including knowing which files to build in. ShrinkSafe as a stand-alone
is really intended for people not using Dojo's build system.
the intern-strings parameter will pull in HTML. CSS is generally in
just a couple of files now, and we're working on a plan for that for
Gzipping works pretty much everywhere except certainly buggy versions of
Internet Explorer (
There are a number of articles out there that go into that,a nd explain
how to modify your web server settings for various versions of IE, etc.
> ShrinkSafe looks very cool:
> I would like to use it to compress not only my files, but more
> importantly those of Dojo. The problem is that I don't know what files I
> need. My understanding is that dojo.require() does dependency
> resolution, so if you have dojo.require("dijit.Foo") that might actually
> download 2 or 3 other files in addition to dijit/Foo.js
> Is there a way for me to know, based on my require() lines, which files
> I need?
> For my app I need to use a lot of different widgets, and I'm very
> interested in compressing them as much as possible.
> If possible, I'd also like to compress the CSS and HTML templates that
> Dojo uses.
> For further compression, I plan to send gzip-compressed files to
> browsers that can handle it like Firefox. Does anyone know which
> browsers can handle gzip compressed files? I know that I don't need that
> information, I'm just curious.
> Thanks for the help.
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest at dojotoolkit.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Dojo-interest