You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by antalk <na...@vankalleveen.net> on 2012/09/12 15:00:11 UTC

Compress Tapestry.init also

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.

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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Compress Tapestry.init also

Posted by Howard Lewis Ship <hl...@gmail.com>.
Ah, and I misread what you wrote; I thought you wanted the CALL to
Tapestry.init() to be minimized, not the libraries that contribute to
T5.initializers (aka Tapestry.Initializers).

On Thu, Sep 13, 2012 at 12:03 AM, antalk <na...@vankalleveen.net> wrote:
> My bad, i was looking at a development site... Still looking forward to 5.4
>
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Compress-Tapestry-init-also-tp5716233p5716262.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Compress Tapestry.init also

Posted by antalk <na...@vankalleveen.net>.
My bad, i was looking at a development site... Still looking forward to 5.4 



--
View this message in context: http://tapestry.1045711.n5.nabble.com/Compress-Tapestry-init-also-tp5716233p5716262.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: Compress Tapestry.init also

Posted by Howard Lewis Ship <hl...@gmail.com>.
On Wed, Sep 12, 2012 at 6:00 AM, antalk <na...@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org