VWO Testing

Why Slow Down Your Website With Multiple Code Snippets?

VWO SmartCode gets you user insights, lets you run experiments, and re-engage with your audience. All of this by using just one piece of code snippet—VWO SmartCode.

Know More
VWO GDPR Ready Badge
VWO CCPA Ready Badge
VWO G2Crowd Leader Spring Badge
VWO BS 10012 Certification Badge
SOC 2 logo
Follow us and stay on top of everything CRO

Faster Website Loading: VWO Asynchronous Smartcode Is Live

3 Min Read

Any (synchronous) external or 3rd party JavaScript code you add to your website has the potential to slow down your website. A vendor who says your website won’t slow down is probably lying. And, as every marketer knows today, page load time is pretty important. It affects your conversion rate and search rankings.

We are committed to our customers’ site speeds and therefore proud to announce the immediate availability of asynchronous code snippets for VWO (VWO). This new code snippet has been months into development and refinement, and now we are the first A/B testing vendor to come up with an asynchronous code snippet, and we are very excited about it! If you are a VWO user, we highly recommend you update your code snippet to the new asynchronous one.

Download Free: A/B Testing Guide

What is Asynchronous loading?

Essentially, instead of loading VWO Smartcode and your website, sequentially, asynchronous code will load both in parallel, thereby speeding up your website load. See the following graphic to understand it fully:

the difference between asynchronous and synchronous code snippet

Advantages of Asynchronous code snippet:

  • Much faster website loading: asynchronous code snippet loads variations and other data in parallel to your website loading, so unlike earlier synchronous code, your website loading is not stalled until we have loaded variation data and other VWO SmartCode. With the new code snippet, all JavaScript code and variation data load parallelly.
  • Fallback to control in case our servers are unavailable: in a rare and unlikely case our servers are unresponsive or take some time to respond, a timeout will happen and your original page will be shown. As history shows, even though it is rare, due to network unavailability or DDOS attacks, even the best networks and servers can become unresponsive. The asynchronous code snippet has a timeout setting (default is 2 seconds, but is configurable — see below). If our servers don’t respond within that time, your normal page will be displayed.

How to get Asynchronous code?

Login to your VWO account, and go to the ‘Smartcode’ section (under the Tools tab).

Settings available in Asynchronous code

In the VWO SmartCode snippet, you will find two variables that you can adjust (although we recommend keeping default values intact).

  • settings_tolerance=2000 This is the maximum time (in milliseconds) for which the code snippet will wait for test settings to arrive from our servers. If no settings arrive within this period, a timeout will happen and your original page will be displayed (the test won’t run in this case, as a fallback has happened).
  • library_tolerance=1500 This is the maximum time (in milliseconds) for which the code snippet will wait for our JavaScript library to get downloaded from our Dynamic Content Distribution Network. If no file arrives within this period, a timeout will happen and your original page will be displayed (the test won’t run in this case, as fallback has happened).

Download Free: A/B Testing Guide

Note that in normal circumstances, all the data and files that need to be downloaded will be downloaded in 100-200 milliseconds, so the timeout is an absolute maximum threshold and can safely be kept as it is.

If you decrease the threshold, one side effect of it would be that some visitors (with slower connections or with local ISP/network issues) may not be able to become a part of your test (because a timeout occurred for them), so you may potentially lose some visitors or conversions registered in your A/B test.

Understand more about VWO Smartcode in this video.

Asynchronous and Synchronous VWO SmartCode

Compatibility of Asynchronous code snippet

The new code snippet is compatible with all browsers. WordPress, Joomla, Magento and Drupal plugins are available. (We are currently working to update Google Analytics and SiteCatalyst  plugins)

Because of the numerous advantages of the new VWO Asynchronous Smartcode, we highly recommend you start using it as soon as possible. In case you have any questions or suggestions, please feel free to contact us at support@vwo.com

Categories:
Paras Chopra
Paras Chopra I started Wingify in early 2009 to enable businesses to design and deploy great customer experiences for their websites and apps. I have a background in machine learning and am a gold medalist from Delhi College of Engineering. I have been featured twice in the Forbes 30 under 30 list - India and Asia. I'm an entrepreneur by profession and my curiosity is wide-ranging. Follow me at @paraschopra on Twitter. You can email me at paras@wingify.com
Share
Related content
More from VWO on A/B Testing
A/B Testing Is Like Chess

A/B Testing Is Like Chess

The rules of chess are easy to remember: a pawn moves one step forward, the…

Read More
Paras Chopra

Paras Chopra

3 Min Read
7 A/B Testing Examples To Bookmark [2024]

7 A/B Testing Examples To Bookmark [2024]

For businesses to flourish in today’s highly competitive market and hit that conversion rate figure…

Read More
Astha Khandelwal

Astha Khandelwal

10 Min Read
15+ Most Helpful Best A/B Testing Resources in 2024 [including Free ones]

15+ Most Helpful Best A/B Testing Resources in 2024 [including Free ones]

*Note: This post has been recently updated. A/B testing is not what it used to…

Read More
Paras Chopra

Paras Chopra

7 Min Read

Deliver great experiences. Grow faster, starting today.

Start Free Trial Request a Demo
Shanaz Khan from VWO

Hi, I am Pratyusha from the VWO Research Desk.

Join our community of 10,000+ Marketing, Product & UX Folks today & never miss the latest from the world of experience optimization.

A value for this field is required.

Thank you!

Check your inbox for the confirmation mail