Custom code and utility functions
Three things to be aware of when writing custom code for Optimizely Performance Edge experiments:
jQuery – jQuery is not bundled in Optimizely Performance Edge projects. If you wish to use jQuery in your custom code, you must ensure it is loaded on the page outside of Optimizely Performance Edge, above the
window.optimizely, Optimizely Performance Edge uses
window.optimizelyEdge. See the Performance Edge API Reference.
The availability of Optimizely-provided utility functions – In traditional Web experimentation,
optimizely.get(‘utils’)provides access to utilities like waitForElement, observeSelector, poll, and waitUntil, all of which are documented in our Web Experimentation Developer's documentation. On a page running Performance Edge a reduced set of utilities is available, on
window.optimizelyEdge.get('utils'). The utilities available in Optimizely Performance Edge are documented in the Performance Edge API Reference.
Updated 4 months ago