VWO Logo
Like this post?
Read our in-depth guide to Complete Guide to Conversion Rate Optimization
Share this post
4 Min Read

Faster Website Loading: VWO Asynchronous Code Snippet Is Live

placeholder
Paras Chopra
Founder and Chairman of Wingify.

Any (synchronous) external or 3rd party JavaScript code you add on your website has 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 immediate availability of asynchronous code snippet for VWO (VWO). This new code snippet has been months into development and refinement, and now we are first A/B testing vendor to come up with an asynchronous code snippet and are very excited about it! If you are a VWO user, we highly recommend you to update your code snippet to new asynchronous one.

What is Asynchronous loading?

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

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 code. With new code snippet, all JavaScript code and variation data loads parallely.
  • 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 best networks and servers can become unresponsive. The asynchronous code snippet has a timeout setting (default is 2 seconds, but is configurable — see below), and if our servers don’t respond within that time, your normal page will get displayed.

How to get Asynchronous code?

Login to your VWO account, and go to ‘Get Tracking Code‘ section (under Tools tab).

Settings available in Asynchronous code

In code 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, timeout will happen and your original page will get displayed (test won’t run in this case, as 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, timeout will happen and your original page will get displayed (test won’t run in this case, as fallback has happened).

Note that in normal circumstances, all the data and files that need to be download will get downloaded in 100-200 milliseconds, so the timeout is an absolutely 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 have local ISP/network issues) may not be able to become a part of your test (because timeout occurred for them), so you may potentially lose some visitors or conversions registered in your A/B test.

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)

Highly recommended: use new Asynchronous code

Because of numerous advantages of new asynchronous code snippet, we highly recommend you to 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

AB Testing Done at Scale

More from VWO

Micro and Macro Conversions | Choosing the Right CRO Metrics

Clearly defining the key performance indicators, or KPIs, is the first step to any Conversion…

Read More
Shivangi

Shivangi

9 Min Read

Using Personalization To Increase AOV And Conversion Rates

Dear |FNAME|, As a valued customer, we’d like to… For many eCommerce companies, the first…

Read More
Sarah Chambers

Sarah Chambers

8 Min Read

[eCommerce Customer Segmentation] Bracketed Segmentation: Peeling Away The Layers

An eCommerce marketing leader’s outlook toward analyzing visitor behavior is akin to a chef working…

Read More
Bhavya Sahni

Bhavya Sahni

9 Min Read
>
Shanaz from VWO

Hi, I am Shanaz 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