Re: JS - defer automatic?

2020-06-23 Thread Rob Audenaerde
Hi Sven, Thanks! that is really helpful, until now I manually added ,true to each JavaScriptHeaderItem :/ Wish I knew this before :) For all others reading this, it is as simple as adding this: setHeaderResponseDecorator(response -> new ResourceAggregator(new JavaScriptDeferHeaderResponse(respon

Re: JS - defer automatic?

2020-06-22 Thread Sven Meier
Hi Rob, have you tried JavaScriptDeferHeaderResponse? And here's some background on how we arrived at this solution: https://issues.apache.org/jira/browse/WICKET-6498 Have fun Sven On 22.06.20 13:23, Rob Audenaerde wrote: Hi all, I'm trying to increase the google-page-speed of some WicketA

JS - defer automatic?

2020-06-22 Thread Rob Audenaerde
Hi all, I'm trying to increase the google-page-speed of some WicketApplication. It seems most jquery javascript is 'blocking', i.e. not usign 'defer'. For example this google-chrome-audit section: URL Size Potential Savings …jquery/jquery-2.2.4-ver-F9E….js