Three things to be aware of when writing custom code for Performance Edge experiments:
jQuery: jQuery is not bundled in 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, above the
window.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 Performance Edge are documented in the Performance Edge API Reference.
Updated 8 months ago