[Dojo-interest] dojo.require(), Shrinksafe and compression
Daniel
daniel.carrera at zmsl.com
Mon Dec 17 16:43:26 UTC 2007
I just made a big compressed file with ShrinkSafe. It packs 21 files
from dijit, dojo.data and dojox.
- Do I still need the dojo.require() lines?
- Will including hose lines cause Dojo to download the original files?
Or will it realize that the widgets are already downloaded?
- Most of the 21 files are dependencies. What if I forgot one? Will the
dojo.require() lines download the one file I might have forgotten?
Thanks for the help.
Best,
Daniel.
Daniel wrote:
> Hello,
>
> ShrinkSafe looks very cool:
>
> http://shrinksafe.dojotoolkit.org/
>
> 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.
>
> Cheers,
> Daniel.
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
More information about the Dojo-interest
mailing list