The following use cases will help you determine which version of the VWO smart code you should add to the web pages you want to test:
- Use the VWO jQuery code (default code) snippet if the webpage you want to test does not have jQuery 1.4.2.
- Use the VWO code snippet without jQuery if the webpage you want to test already has jQuery 1.4.2 or later. In such a case, it is important to ensure that jQuery is loaded before VWO code loads.
Converting VWO jQuery Code Snippet into a Non-jQuery Code Snippet
To convert the VWO jQuery code snippet into a non-jQuery code snippet, change the following in your VWO smart code:
- For asynchronous (async) code, set use_existing_jquery to true.
- For synchronous (sync) code, change vis_opt.js to vis_opt_no_jquery.js.