Pre-hiding code snippet slowing down page load speed

alexe58360872

28-05-2020

Good Morning Everyone,

I have  a question regarding the pre-hiding code snippet which is required when deploying Target via Launch.  We had to remove the code snippet as it was causing a 3 second delay in page loads.  Has anyone ever come across this issue?  If so, how was it resolved?

Thank you very much,

Alex

Accepted Solutions (1)

Accepted Solutions (1)

ben68

Employee

30-05-2020

Hi Alex,

 

Pre-hiding snippet is required when Launch is loaded asynchronously. Loading Launch asynchronously is a non-blocking approach. The timeout configuration (3 seconds) in the pre-hiding snippet is the maximum timeout for Target response. With the right implementation, Launch script is added to the page in the right location, page will be visible as soon as Target responds which is usually 400ms. My recommendation is to revisit the implementation and make sure that Launch is added in the correct location on the page. 

 

Thanks,
Bala

Answers (2)

Answers (2)

gaureshk3014423

28-05-2020

Hi @alexe58360872 

Have you tried minimising the timeout for prehiding snippet in launch?