How Browser RUM Works
Browser RUM works in the following way:
- An end user requests the first page from your web application.
- Your web application executes whatever business logic that particular page requires.
- Your web application creates the response page to return to the end user. The response page includes:
- application-specific information.
- a copy of a small JavaScript script that knows how to collect relevant performance information about that page. This script is called the JavaScript Agent.
- The page, with the JavaScript Agent included, is returned to the end user.
- As the page is being constructed in the browser, the script collects relevant information about the page's performance.
- At approximately the same time as the onload event for the page fires, a copy of a somewhat larger JavaScript file, the JavaScript Agent extension, is downloaded asynchronously by the injected agent.
- This second script packages the collected performance information and sends it via a web beacon to the EUM Server collector for processing.
- The two scripts work together to collect and send performance information as the end user navigates through the instrumented pages of your application.