# Dynatrace RUM using manual injection

**URL:** <https://community.dynatrace.com/t/dynatrace-rum-using-manual-injection/39116>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, dynatrace-managed\
**Created:** [March 31, 2023, 12:53pm UTC](https://community.dynatrace.com/t/dynatrace-rum-using-manual-injection/39116 "2023-03-31T12:53:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![agrawal\_shashan](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@agrawal\_shashan](https://community.dynatrace.com/u/agrawal_shashan)\
**Post date:** [March 31, 2023, 12:53pm UTC](https://community.dynatrace.com/t/dynatrace-rum-using-manual-injection/39116/1 "2023-03-31T12:53:17Z")

</div>

Hey Guys, I am trying to understand the agentless manual injection methods. I have been using&nbsp;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.

> **[Configure automatic injection in RUM Classic](https://docs.dynatrace.com/docs/observe/digital-experience/rum-classic/web-applications/initial-setup/rum-injection)**
>
> Configure automatic injection of the RUM JavaScript into the pages of your applications

I can see there is another insertion method&nbsp;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?

1. If we change the monitoring settings in Dynatrace UI, do i have to update the snippet again on the pages?
2. Will there be any missing monitoring data? I mean if the JS does not get loaded fully on time and page starts loading before that, will we miss anything in terms of metrics?
3. Do we need to specifically mention “async” keyword while loading the script or this is built-in the JS and we just have to load it from the page?

Best Regards,  
Shashank

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [April 3, 2023, 8:45am UTC](https://community.dynatrace.com/t/dynatrace-rum-using-manual-injection/39116/2 "2023-04-03T08:45:33Z")

</div>

Hi Shashan,

In the case of asyncCS you must proceed almost exactly as with syncCS. Dynatrace recommend that you regularly update the snippet:

 ![Screenshot 2023-04-03 at 10.45.02.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/1decf8108b4c35d8beea8cab6d798b4c8e05691c.png)

You can use DT Api to dynamically downloads the monitoring code into your application. The monitoring code is loaded asynchronously.

> **[RUM JavaScript API - GET asynchronous code snippet](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/rum/real-user-monitoring-javascript-code/get-snippet-async)**
>
> Retrieve the asynchronous code snippet of RUM JavaScript.

Radek
