[ 
https://issues.apache.org/jira/browse/TAP5-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659433#action_12659433
 ] 

Martin Reurings commented on TAP5-73:
-------------------------------------

A built-in feature set such as this has the potential of a negative effect on 
real high-performance websites:
- Packing Javascripts may cause scripts that could have been cached client-side 
to get reloaded numerous times.
- Packing Javascripts may cause unneeded Javascript to get sent (and parsed) 
numerous times
- If T5 stays responsible for supplying what are essentially 'static' files 
these cannot be served from a different server, which allows caching and could 
have a different bandwidth allowance (this is already a problem and would get 
even worse).
- Packed/Compressed Javascripts are almost impossible to debug properly.

I'm quite certainly missing some more negative side-effects, but these feel 
likel enough to make my point. Features like these are great to have in a 
framework, but must be disabled by default, in my humble opinion. Also, I have 
to agree with some of the previous posters in stating, this should be fixed at 
build-time not take CPU and memory at run-time.

> JavaScript libraries should be automatically packed/minimalized
> ---------------------------------------------------------------
>
>                 Key: TAP5-73
>                 URL: https://issues.apache.org/jira/browse/TAP5-73
>             Project: Tapestry 5
>          Issue Type: New Feature
>    Affects Versions: 5.0.15
>            Reporter: Howard M. Lewis Ship
>
> Tapestry should catch downloads of JavaScript libraries, and should "pack" 
> the JavaScript ... remove comments and unecessary whitespace.  I believe Dojo 
> has a library to do this, it may even shorten variable names (!).
> A smart implementation of this would manage to cache the compressed JS, and 
> notice when the uncompressed version changed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to