Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
6.0.0-beta1
Description
There should be some (easy) way to specify an external URL (for example, on a CDN) for the JQuery script.
IJavaScriptLibrarySettings.setJQueryReference() takes only a ResourceReference as a parameter, that must point to an application resource. One could create an IResource that redirects to the CDN, but that would require an additional request anyway.
That support should exist also for wicket-ajax.js and wicket-event.js, but it is less of an issue, since they are tied to the Wicket version anyway (JQuery is hosted for free in a number of CDNs, so using them is very compelling).
If there is some workaround, it should be documented in the wiki.
Attachments
Issue Links
- is related to
-
WICKET-5610 Introduce IApplicationSettings.useCdnResources() that will serve jQuery from CDN and can be used by 3rd party libs
- Resolved