How to Extend Jquery and use it along the convert._$() library.

Sample Use Case

Let say that we want to test loading new images from a different CDN of what we currently use to see if this affects conversion.

We need to set up an AB experiment in which the new CDN is reflected on all the images that we want to load from the other service. 

This is just for illustrative purposes. The code has been tested, but not in a real case scenario. It is shown here so anybody can create their own Jquery libraries that work along with Convert.

Code

The following code extends the convert version of jquery and then users in on the convert._$ wrapper library:

See the Pen Extend Jquery and use with convert._$() by Convert.com (@gcrewe) on CodePen.

Have more questions? Submit a request
CONVERT MORE

Reliably Convert More Site Visitors, Even If Everything Else is Changing in Your Business.

START 15-DAY FREE TRIAL
✓ No Credit Card  ✓ Easy Set-Up  ✓ Access All Features

Comments