Hello Klaviyos!

Let's get started with out first example.

Tasks

1) How does the initialisation of the Klaviyo JavaScript SDK on a page affect the loading speed? How large is the library and should I be worried about performance issues this might be causing?

2) On this page the Klaviyo library is initialised 3 times. Confirm whether this is the case. Why could this be? Can this be corrected and how?

 

How to approach this

There are several tools at our disposal.

- View the source code of the page - can you locate the initialisation of the Klaviyo library? Does the Klaviyo Tag feature in the code multiple times? Can an external script (such as the Klaviyo JS library) be loaded without featuring in the source code of the page?

- Open the Chrome Developer Tools and navigate to the Network Panel. Refresh the page and filter for 'Klaviyo'. Can you se the requests responsible for the initialisation of Klaviyo? Do you see any errors? What is the size of the Klaviyo JS library and how long did it take for it to load? 

 

Example 2