Github user svenmeier commented on the issue: https://github.com/apache/wicket/pull/258 Ah, that one is easy: Your header item is defining a function "wbAction". With deferred items this function is now defined inside the 'DOMContentLoaded' callback only. This is one of the corner cases that can be solved in client only: ``` private static StringBuilder getNamedFunctionStr(String name, AbstractDefaultAjaxBehavior b, CallbackParameter... extraParameters) { StringBuilder sb = new StringBuilder(); sb.append("window.").append(name).append(" = function("); boolean first = true; for (CallbackParameter curExtraParameter : extraParameters) { if (curExtraParameter.getFunctionParameterName() != null) { if (first) { first = false; } else { sb.append(','); } sb.append(curExtraParameter.getFunctionParameterName()); } } sb.append(") {\n"); sb.append(b.getCallbackFunctionBody(extraParameters)); sb.append("}\n;"); return sb; } ```
---