You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (Commented) (JIRA)" <ji...@apache.org> on 2012/02/21 11:13:34 UTC

[jira] [Commented] (WICKET-4418) Combine all JavaScript evaluations in one element for better performance at the client side

    [ https://issues.apache.org/jira/browse/WICKET-4418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13212492#comment-13212492 ] 

Martin Grigorov commented on WICKET-4418:
-----------------------------------------

Here is a benchmark showing that Firefox is actually slower with combined eval, IE is the same, all other are faster with one eval.

http://jsperf.com/one-function-vs-several
                
> Combine all JavaScript evaluations in one <evaluate> element for better performance at the client side
> ------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-4418
>                 URL: https://issues.apache.org/jira/browse/WICKET-4418
>             Project: Wicket
>          Issue Type: Sub-task
>          Components: wicket
>    Affects Versions: 6.0.0
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 6.0.0
>
>
> Ajax response may contain several <evaluate> (and <priority-evaluate>) elements which are eval-ed one by one when <ajax-response> is processed. This can be improved by combining the bodies (the JS code) of all <evaluate>s in one bigger <evaluate>.
> See http://markmail.org/thread/qdgn4qvqp4kzuptb for the discussion.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira