jQuery
4 min
Optimizely Web Experimentation, on its own, does not rely on jQuery. You only need to include jQuery in your project if you want to use it in implementing your campaigns and if you need to deliver it through the Web Experimentation snippet itself. You can find the option in Project SettingsProject Settings.
Syntax
jquery = window["optimizely"].get("jquery");Parameters
Parameter and Type | Child Attribute | Description |
|---|---|---|
jquery string | N/A | The argument indicating to get the jQuery object. Required. |
Return value
Parameter and Type | Child Attribute | Description |
|---|---|---|
jQueryObject | N/A | The jQuery object. Learn more about the jQuery API. |
Example call
jquery = window["optimizely"].get("jquery");