Overview
You may have custom modules that require a different version of jQuery than the one provided with DNN. Hence, you may need to use an alternative version of jQuery.
Prerequisites
- Access to a SuperUser account.
Solution
To do so, please follow the process below.
-
From the Persona Bar, navigate to Settings > Extensions > Installed Extensions > JavaScript Libraries.
-
Click on the pencil icon next to the jQuery JavaScript Library to edit it.
-
Click Extension Settings.
-
Enter the URL to the desired jQuery version in the Custom CDN field.
For example, the URL for version 3.4.1 would be//cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js
.
Note: You can find links to other versions of jQuery on the CDNJS portal. -
Click Save & Close.
-
Navigate to Persona Bar > Settings > SQL Console.
-
Run the following query:
SELECT * FROM HostSettings WHERE SettingName = 'CDNEnabled'
-
If the query did not return any data, run the following query:
INSERT INTO HostSettings ( SettingName, SettingValue, SettingIsSecure, CreatedByUserID, CreatedOnDate, LastModifiedByUserID, LastModifiedOnDate ) VALUES ( 'CDNEnabled', 'Y', 0, -1, GETDATE(), -1, GETDATE() )
-
If the query returned a row, run the following query:
UPDATE HostSettings SET SettingValue = 'Y' WHERE SettingName = 'CDNEnabled'
-
-
Navigate to Persona Bar > Settings > Servers and clear the cache.
-
Open Developer Tools (F12) in your browser and select the Network tab.
-
Filter by
jQuery
. -
Press Ctrl+F5 to refresh the page.
You should see your version of jQuery (in this example, version 3.4.1) loading from the Cloudflare CDN.
Comments
0 comments
Please sign in to leave a comment.