Upgrade jQuery version in AEM as a Cloud Service
Adobe Experience Manager (AEM) as a Cloud Service – Sites uses a default jQuery version (v1.12.4-aem), which is maintained by Adobe and receives security updates. If you need to upgrade to a newer version of jQuery for compliance or feature requirements, you must override the default client library with your preferred version.
Description description
Environment
Adobe Experience Manager (AEM) as a Cloud Service – Sites
Issue/Symptoms
The application uses Adobe’s default jQuery v1.12.4-aem but requires an upgrade to the latest version for compliance or other needs.
Resolution resolution
To replace the default jQuery library with a custom one, follow these steps:
- Add your preferred jQuery version as a client library under
/apps/<project>/clientlibs/clientlib-jquery. - Set the
categoriesproperty tojqueryand thereplacesproperty to/libs/clientlibs/granite/jquery. - Test the updated library in the development and staging environments.
- Test interactive components (for example, modals, sliders, and AJAX calls) across environments to ensure compatibility with the new jQuery version.
- Verify that the application works correctly with the new jQuery version.
- Deploy the changes to production after successful testing.
- Monitor the codebase for dependencies that could be affected by future jQuery updates.
After following all the above steps, ensure that only your preferred version of jQuery is in use and that all functionality works as expected across environments.
Additional Notes:
- Managing your own version of jQuery gives you control over updates but also makes you responsible for ensuring compatibility during future upgrades.
- The default Adobe-provided jQuery version 1.12.4-aem receives all relevant security updates and may already address specific vulnerabilities without requiring an upgrade.
- Test thoroughly before deploying changes to production to avoid potential conflicts or functionality issues.
Related reading
- Customizing Consoles in the AEM as a Cloud Service User Guide
- Using Client-Side Libraries in the AEM as a Cloud Service User Guide