tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiago H. de Paula Figueiredo (JIRA)" <j...@apache.org>
Subject [jira] Commented: (TAP5-73) JavaScript libraries should be automatically packed/minimalized
Date Mon, 08 Jun 2009 13:50:08 GMT

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

Thiago H. de Paula Figueiredo commented on TAP5-73:
---------------------------------------------------

Tapestry 5.1.0.5 (don't know about previous 5.1.0.x versions) already combines all the external
(not inline) Javascript files when the symbol SymbolConstants.COMBINE_SCRIPTS is set to true
(default value: the same as SymbolConstants.PRODUCTION_MODE, which has true as default). Therefore,
IMHO, we don't need Javascript bundles nor JAWR, just the minification of Javascript files.

By the way, after GZipping combined Javascript files, do we still need to minify them?

I've just opened https://issues.apache.org/jira/browse/TAP5-741 to provide packing/minification
for CSS files too.

Support for JAWR bundles in @IncludeJavaScript doesn't need any modifications to Tapestry:
just add another binding that provides the correct URL for that given JAWR bundle.

> 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.


Mime
View raw message