Pre-hiding code snippet slowing down page load speed | Community
Skip to main content
Level 2
May 28, 2020
Solved

Pre-hiding code snippet slowing down page load speed

  • May 28, 2020
  • 3 replies
  • 7254 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ben68

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

3 replies

Gaureshk_Kodag
Adobe Employee
Adobe Employee
May 28, 2020

Hi @alex19771 

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

 

Alex19771Author
Level 2
May 28, 2020

Hi @gaureshk_kodag

We had to hard code the pre-hiding snippet as per Adobe documentation.  Is there another way we can deploy the code via Launch?

 

Thanks,

Alex

ben68Adobe EmployeeAccepted solution
Adobe Employee
May 30, 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

Alex19771Author
Level 2
June 1, 2020
Hi @ben68,
Adobe Employee
June 26, 2020