I have a WordPress website,I am using livechatinc as a chat application. Without the chat code, the homepage is loading within 0.9 to 1.2 seconds, but after placing the chat code, it goes up to 3.2 seconds. I want to load the js chat code after the webpage is fully loaded.
I have tried using several plugins, but nothing seems working. Here is the code provided from livechatnic
<!-- Start of LiveChat (www.livechatinc.com) code -->
<script type="text/javascript">
window.__lc = window.__lc || {};
window.__lc.license = 3254125;
(function() {
var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);
} )();
</script>
<!-- End of LiveChat code -->