You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by GitBox <gi...@apache.org> on 2019/10/08 05:34:11 UTC

[GitHub] [wicket] svenmeier commented on issue #384: WICKET-6703 replace eval with jQuery.globalEval; add suspend/notify

svenmeier commented on issue #384: WICKET-6703 replace eval with jQuery.globalEval; add suspend/notify
URL: https://github.com/apache/wicket/pull/384#issuecomment-539336428
 
 
   If every JS snippet is ending up as a header item anyway, why not remove &lt;priority-evaluate&gt; and &lt;evaluate&gt; from the Ajax response and transport everything as a &lt;header-contribution&gt;?
   In the correct order of course.
   
   &lt;script&gt; and &lt;style&gt; already have a nonce-attribute, so we don't need to invent something new to transport that information in the Ajax response.
   With WICKET-6703 we will have 4 paths* in wicket-ajax-jquery.js to add &lt;script&gt; to the DOM, which could all be unified:
   ```
   [<header-contribution>]
   -> processHeaderContribution	
     -> Wicket.Head.Contributor.processContribution
       -> processScript
         [has "src"]
           -> Wicket.Head.addElement
         [has "id"]
           -> addJavascript
             -> Wicket.Head.addElement
         [otherwise]
           -> jQuery.globalEval
   
   [<priority-evaluate> or <evaluate>]
   -> processEvaluation
     -> jQuery.globalEval
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services