Hello, I would like to get my Javascript files filtered and gzipped. I added the following code in my Application#init(): resourceSettings.setJavascriptCompressor(new DefaultJavascriptCompressor());
However, when I add a resource using the following code, I can still see comments and white spaces in the Javascript files loaded by the web pages: final JavascriptResourceReference resourceRef = new JavascriptResourceReference(scope, "/common.js"); component.add(JavascriptPackageResource.getHeaderContribution(resourceRef)); What am I doing wrong? Also, I am struggling to understand the benefits of using shared resources, e.g. when does it make sense to create a shared resource for a Javascript file? Thanks, Alec --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org