- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
06-22-2020 09:39 AM
Hi, We are migrating jquery 1.x to 3.5.1. Do we have any dependency of jQuery in utag.js? As far as i know only external scripts like extensions or tags will be affected instead of utag.js itself?
Could you please clarify and if there is any impact could you please share any URL / Doc?
Regards,
Ashok Kumar
06-23-2020 10:19 AM
Hi @AshokPrasad
Great question. We have two jQuery Extensions:
If you are migrating from jQuery v1.6 or below, you will need to update any jQuery extensions to the current v1.7 and above version.
If you are migrating from jQuery v1.7 or above, you will not need to make any updates to your current set up.
The jQuery extensions are scoped to DOM READY and cannot be changed
This scoping means that the jQuery Extensions load with utag.js and could potentially cause issues only if using the Custom Feature of the extension to add additional code:
With regards to the most current jQuery Extension v1.7 and above, the code that is injected into utag.js will look something like this:
jQuery('#feedbackForm').on('mousedown', 'input.submit-action', function(e) {
utag.link({
"tealium_event" : 'feedback_submitted',
"feedback_message" : $('#feedbackForm textarea').val(),
"username" : utag.data['username']
})
});
This is the extent of how we utilize jQuery - we make a reference to the library and use the standard on method to define what event to listen for.
Therefore the only dependency issues could stem from custom code that utilizes jQuery like in a javascript extension or using the "Custom" setting within the jQuery Extension as I stated above.
For more information on our jQuery Extension, here is a link to the documentation:
Hope this helps!
Copyright All Rights Reserved © 2008-2023