Delayed loading intercom

Hi everyone, is it possible to load the intercom after 5 sec from loading the page?

Hey there! :wave:

Are you just looking to delay the Messenger launcher or some sort of Auto Message on the page?

The only way to delay the launcher at the moment would be to create custom code on your end and use some sort of timer function to load the Messenger on a delay.

If you’re looking to delay a message that’s on the page, you can do that straight in the UI! Let me know if that’s what you’re looking to do here :+1:


Hey thank you for your response.

I am trying to load the intercom script with a delay of 5 sec.

Yes, I know I have to create a custom code, I try to use a function setTimeout but then the intercom does not start

function inter(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);};if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}

}, 5000);

Test consol log appears after 5s, but not intercom. Any ideas?

It might be a little easier to instead set your messenger to hidden in your app settings and then use something like this:

  Intercom('update', {hide_default_launcher: false})
}, 5000);

Do you think that could work?

I’m trying to achieve the same thing, only i want to delay intercom because I’ve noticed it effects the initial load quite a bit. i’ve tried to use setTimeout to achieve this, but any attempt to load the script after doesn’t seem to properly install it to the window object

Same thing for me here.

I need to load intercom later after my single page app is fully loaded. Otherwise intercom loads before the page is fully built and there are missing elements for the product tour which prevent it from working correctly.