- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
02-26-2019 07:22 AM
So the functionf(a,b) is getting binded and calling entire piece of code for every time an event is done like clicking of elements.the code is written in Javascript Extension.and condition is kept for
URL contains "somestring in the url of a commerce page like PLP or PDP"
example if i write something on page load console.log('load some random text') it is being called when the click is done though it is not written within the click event.
the function is getting binded and called for every time an event happening in the page so are there any steps or soultion so that the function loads only once and events like click dosen't get any unecessary triggering of events.
02-27-2019 06:37 PM
Hi @maanya_sai
Have you tried assigning a condition on the extension to check if "ut.event" EQUALS "view" so it limits the functionality to the initial page view event, and not on link events?
Copyright All Rights Reserved © 2008-2023