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
<script>element whose “src” attribute is your first-party Edge Decider URL.
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 8 months ago