Why did we make this enhancement?
These changes have been made to provide enhanced support for SPAs, allowing you to pass behavioral and product data directly to the Fresh Relevance script and receive notifications when the script performs certain actions.
This enhancement also reduces dependency on the detection of page transitions and collection of product information from the page HTML.
What did we change?
We implemented event emitters from the Fresh Relevance script. These allow you to react to events raised by the script, for example when each element of personalization is about to be inserted, or all personalization is complete.