Hi there!
I’m using a handful of different element hooks to include differing JS code depending on the page the user is on.
However, within those different hooks I need to call commonly shared JS functions (e.g. a function for efficient cookie setting) and I’m looking for a solution so that I don’t have to include (and later potentially update) said functions over and over within every single hook. Instead I’d like to have said functions in a single spot and call this “global” spot from within the indiviual, page-specific hooks.
Any ideas?
Thanks in advance!
Stefan