We’ve migrated our documentation to a new site, which means some URLs have changed.
Subscriptions

What's the difference between the two Composer functions?

We currently support the two below Composer functions, that can be used to load Experiences.

tp.experience.init()

tp.experience.execute()

Both are basically doing the same thing - executing Composer. The biggest difference is that tp.experience.init() can be called only once and usually is firing upon the page load and the tp.experience.execute()​ is used to execute Composer after the initial page load and can be called multiple times. For example, it's used for single page implementations as described here.

Last updated: