solomax commented on code in PR #573:
URL: https://github.com/apache/wicket/pull/573#discussion_r1162338912


##########
wicket-core/src/main/java/org/apache/wicket/page/PartialPageUpdate.java:
##########
@@ -265,7 +265,7 @@ private CharSequence renderScripts(Collection<CharSequence> 
scripts) {
                        
combinedScript.append("(function(){").append(script).append("})();");
                }
 
-               StringResponse stringResponse = new StringResponse();
+               StringResponse stringResponse = new 
StringResponse(combinedScript.length() + 65);

Review Comment:
   Maybe `SCRIP_BLOCK_LENGTH` ?



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to