31 Mar 2023 01:53 PM
Hey Guys, I am trying to understand the agentless manual injection methods. I have been using JavaScript tag method for a while without any issues but I am just concerned that it loads the JS synchronously and let's say if the JS takes time to load then it blocks the actual page to load which is NOT GOOD.
https://www.dynatrace.com/support/help/shortlink/rum-injection#manual-insertion
I can see there is another insertion method Code snippet deferred (asyncCS) which gets loaded asynchronously in the background and it doesn't affect the page load.
I want to understand if we use this, will there be any disadvantages?
Best Regards,
Shashank
Solved! Go to Solution.
03 Apr 2023 09:45 AM - edited 03 Apr 2023 09:45 AM
Hi Shashan,
In the case of asyncCS you must proceed almost exactly as with syncCS. Dynatrace recommend that you regularly update the snippet:
You can use DT Api to dynamically downloads the monitoring code into your application. The monitoring code is loaded asynchronously.
Radek