You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2010/01/06 21:39:55 UTC
[jira] Closed: (TAP5-706) In an AJAX response multiple Javascript
files are included. This should be reduced to include the needed files only
once to minimise the response size
[ https://issues.apache.org/jira/browse/TAP5-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-706.
-------------------------------------
Resolution: Duplicate
Assignee: Howard M. Lewis Ship
> In an AJAX response multiple Javascript files are included. This should be reduced to include the needed files only once to minimise the response size
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TAP5-706
> URL: https://issues.apache.org/jira/browse/TAP5-706
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.5
> Reporter: Andrej Aschenbrenner
> Assignee: Howard M. Lewis Ship
> Priority: Minor
>
> Having a Mixin:
> @IncludeJavaScriptLibrary(value = { "../h4p.js", "AjaxEvent.js" })
> @MixinAfter
> public class AjaxEvent {
> ...
> which includes per @IncludeJavaScriptLibrary many Javascript files
> and when this Mixin is attached to multiple Components then
> the following AJAX response is sent back (snippet from the AJAX response):
> ...,"scripts":["/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js","/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js","/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js","/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js","/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js","/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js","/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js","/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js","/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js","/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js","/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js","/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js","/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js","/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js","/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js"],"script":"Tapestry.decimalFormatSymbols = {\"minusSign\":\"-\",\"groupingSeparator\":\".\",\"decimalSeparator\":\",\"}.....
> This could be reduced to:
> ...,"scripts":["/Test/assets/app/cce8dc1a4ba1736d/h4p.js","/Test/assets/app/cce8dc1a4ba1736d/mixins/AjaxEvent.js"],"script":"Tapestry.decimalFormatSymbols = {\"minusSign\":\"-\",\"groupingSeparator\":\".\",\"decimalSeparator\":\",\"}.....
> Thanks,
> Andrej Aschenbrenner
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.