Re: JS performance optimization in AjaxRequestTarget

2012-02-21 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-4418 there is a link to a benchmark On Thu, Feb 9, 2012 at 11:13 PM, Johan Compagner jcompag...@gmail.com wrote: or use the let statement.. but support in all browsers could be a bit tricky ;) shouild be javascript 1.7 (thats FF 2.0 from 2006) but

Re: JS performance optimization in AjaxRequestTarget

2012-02-09 Thread Martin Grigorov
.) Agree! Tom Burton -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Wednesday, February 08, 2012 4:25 AM To: dev@wicket.apache.org Subject: JS performance optimization in AjaxRequestTarget Hi, Do you imagine a use case in which several evaluates

Re: JS performance optimization in AjaxRequestTarget

2012-02-09 Thread Frank van Lankvelt
On 8 feb. 2012, at 16:01, Emond Papegaaij emond.papega...@topicus.nl wrote: In Wicket 6, onDomReady and onLoad scripts are merged into one big script in the ResourceAggregator. This is to prevent many script tags, all with $(document).ready(function(){...}) (or the wicket equivalent). This

Re: JS performance optimization in AjaxRequestTarget

2012-02-09 Thread Martin Grigorov
On Thu, Feb 9, 2012 at 6:16 PM, Frank van Lankvelt f...@a-eskwadraat.nl wrote: On 8 feb. 2012, at 16:01, Emond Papegaaij emond.papega...@topicus.nl wrote: In Wicket 6, onDomReady and onLoad scripts are merged into one big script in the ResourceAggregator. This is to prevent many script tags,

Re: JS performance optimization in AjaxRequestTarget

2012-02-09 Thread Johan Compagner
or use the let statement.. but support in all browsers could be a bit tricky ;) shouild be javascript 1.7 (thats FF 2.0 from 2006) but i don't think its in EcmaScript yet (looks like EcmaScript 6 gets it) and most other browsers follow that and do currently Edition 5.x or something On Thu, Feb

JS performance optimization in AjaxRequestTarget

2012-02-08 Thread Martin Grigorov
Hi, Do you imagine a use case in which several evaluates in ajax-response should be executed separately (one after another) as it is now ? Each evaluate (and priority-evaluate) is executed in an eval() in wicket-ajax.js. As we all know eval() is slow. As an optimization I think we can merge all

Re: JS performance optimization in AjaxRequestTarget

2012-02-08 Thread Bertrand Guay-Paquet
Hi, Merging multiple evaluates together will change the scope of some variables. The variables in the scope of an evaluate block would carry on in the following evaluate blocks. This could however be mitigated by wrapping each evaluate block in its own function. Bertrand On 08/02/2012 8:24

Re: JS performance optimization in AjaxRequestTarget

2012-02-08 Thread Martin Grigorov
On Wed, Feb 8, 2012 at 4:33 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hi, Merging multiple evaluates together will change the scope of some variables. The variables in the scope of an evaluate block would carry on in the following evaluate blocks. This could however be mitigated

Re: JS performance optimization in AjaxRequestTarget

2012-02-08 Thread Emond Papegaaij
This is very easy to accomplish in 6.0. You only have to delete the code that keeps the scripts separate when AJAX :). I can fix this, if you want? Emond On Wednesday 08 February 2012 16:44:14 Martin Grigorov wrote: On Wed, Feb 8, 2012 at 4:33 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca

Re: JS performance optimization in AjaxRequestTarget

2012-02-08 Thread Martin Grigorov
On Wed, Feb 8, 2012 at 4:50 PM, Emond Papegaaij emond.papega...@topicus.nl wrote: This is very easy to accomplish in 6.0. You only have to delete the code that keeps the scripts separate when AJAX :). I can fix this, if you want? I think we talk about different things. I talk about Ajax

Re: JS performance optimization in AjaxRequestTarget

2012-02-08 Thread Emond Papegaaij
In Wicket 6, onDomReady and onLoad scripts are merged into one big script in the ResourceAggregator. This is to prevent many script tags, all with $(document).ready(function(){...}) (or the wicket equivalent). This merging is only done for non-AJAX requests, to preserve the separate evaluates.

Re: JS performance optimization in AjaxRequestTarget

2012-02-08 Thread Martin Grigorov
On Wed, Feb 8, 2012 at 5:01 PM, Emond Papegaaij emond.papega...@topicus.nl wrote: In Wicket 6, onDomReady and onLoad scripts are merged into one big script in the ResourceAggregator. This is to prevent many script tags, all with $(document).ready(function(){...}) (or the wicket equivalent).

RE: JS performance optimization in AjaxRequestTarget

2012-02-08 Thread Burton, Tom F (DOR)
...@apache.org] Sent: Wednesday, February 08, 2012 4:25 AM To: dev@wicket.apache.org Subject: JS performance optimization in AjaxRequestTarget Hi, Do you imagine a use case in which several evaluates in ajax-response should be executed separately (one after another) as it is now ? Each evaluate