On Wed, Sep 12, 2012 at 6:00 AM, antalk <nab...@vankalleveen.net> wrote:
> Hi,
>
> I've been working a while with 5.3.x and the js minizer(s), and just now i
> see that the Tapestry.init functions is not compressed / minized ? All the
> other .js scripts are.

What does a minimizer do?  It eliminates comments and unnecessary
whitespace, and (where possible) shortens local variables and
properties.  The JSON object passed to Tapestry.init() is purely data:
keys and values, nested.  In production mode, it is rendered without
whitespace.  There is not, to my knowledge, much that a minimizer
could do to it.

Further, in Tapestry 5.4, there is the start of a shift away from the
initialization style; instead there will be more use of data-
attributes and handlers attached to the body; in other words, the
logic is delivered once, and the specifics are packaged directly
inside the relevant elements. I think we'll start to see a lot fewer
explicit element ids, as they will be much less necessary (they are
often generated just so a initializer has something to target).


>
> Wouldn't it be an idea to minimize this part also ?
>
> Antal
>
>
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Compress-Tapestry-init-also-tp5716233.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to