JavaScript Library (Deprecated)

📘

This documentation covers our pre August 2020 implementation. We strongly recommend upgrading to our latest JavaScript implementation to take advantage of performance improvements and additional features. Our migration guide can be found here.

The code below imports our library, but without any client specific configurations. Please place it to the page header, and only include it once per page.

<!-- protocol-relative URL -->
<script 
  defer="defer" 
  src="//mark.reevoo.com/assets/reevoo_mark.js" 
  id="reevoomark-loader" 
  type="text/javascript"
></script>

We implicitly use the protocol set by the page, but if you need to explicitly set the protocol use one of the following depending on if you want HTTP/HTTPS.

<script 
  defer="defer" 
  src="http://mark.reevoo.com/assets/reevoo_mark.js" 
  id="reevoomark-loader" 
  type="text/javascript"
></script>
<script 
  defer="defer" 
  src="https://mark.reevoo.com/assets/reevoo_mark.js" 
  id="reevoomark-loader" 
  type="text/javascript"
></script>

Reevoo JS library callbacks

Reevoo JS library allows you to register callbacks that will be executed after the library has been loaded. The following example shows how to register callbacks.

<script>
  if (typeof window.afterReevooMarkLoaded === 'undefined') {
    window.afterReevooMarkLoaded = []; 
  }
  afterReevooMarkLoaded.push(function() { 
    alert('Reevoo JS library loaded');
  });
</script>