public static void replaceJQueryReference ( final WebApplication application , final String cdnjsUrl ) { application . getJavaScriptLibrarySettings ( ) . setJQueryReference ( new UrlResourceReference ( Url . parse ( cdnjsUrl ) ) ) ; }
Replace the default jquery resource reference from the given application with the given cdn url .