{
super.renderHead(component, response);
CoreLibrariesContributor.contributeAjax(component.getApplication(), response);
RequestCycle requestCycle = component.getRequestCycle();
Url baseUrl = requestCycle.getUrlRenderer().getBaseUrl();
CharSequence ajaxBaseUrl = Strings.escapeMarkup(baseUrl.toString());
response.render(JavaScriptHeaderItem.forScript("Wicket.Ajax.baseUrl=\"" + ajaxBaseUrl
+ "\";", "wicket-ajax-base-url"));
renderExtraHeaderContributors(component, response);