Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

All IInitializer classes configured in wicket.properties are initialized before the call to Application#init(). This way the application has the control to re-configure something that comes from external library. WICKET-4088

PackageResourceReference

...

can load a

...

minified version of a package resource

org.apache.wicket.resource.MinifiedAwareCssResourceReference and org.apache.wicket.resource.MinifiedAwareJavaScriptResourceReference are introduced. Their usage is the same as JavaScriptResourceReference. The difference is that in development mode they will load resource.ext using the provided name while in production mode they PackageResourceReference is improved to be able to load a minified/compressed version of a resource.
By default in development mode the non-minimized resource is loaded (resource.ext) while in production mode it will try to load resource.min.ext by automatically inserting .min right before the extension. If there is no such resource with that name then it will log a warning and fall back to the non-compressed versionminified version.
This behavior can be configured with org.apache.wicket.settings.IResourceSettings#setUseMinifiedResources(boolean).