<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RUM: Insights into Background Activity in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/RUM-Insights-into-Background-Activity/m-p/267422#M1551</link>
    <description>&lt;P&gt;Great tip, all the respect.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2025 16:30:51 GMT</pubDate>
    <dc:creator>MostafaHussein</dc:creator>
    <dc:date>2025-01-14T16:30:51Z</dc:date>
    <item>
      <title>RUM: Insights into Background Activity</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/RUM-Insights-into-Background-Activity/m-p/267387#M1549</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If you are analyzing user actions and want to understand and quantify which load actions are loaded in the background, this post is for you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When a page is loading in the background or when switching between browser tabs while the page is still loading, it can lead to challenges in interpreting the Waterfall analysis, such as missing or incomplete resources, ununderstandable "visually complete" time, gaps in page resource loading. These scenarios are often highlighted in the Waterfall analysis of load actions.&amp;nbsp;Modern browsers significantly limit the performance of background tabs to conserve battery life and system resources.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the currently available RUM, you can check background activities under the Waterfall analysis findings of the load user action. However, it is not possible to quantify these activities or query them using USQL.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mohamed_Hamdy_0-1736858433045.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25710i5EB74077E5DB6906/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mohamed_Hamdy_0-1736858433045.png" alt="Mohamed_Hamdy_0-1736858433045.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Fortunately, you can utilize the &lt;/SPAN&gt;&lt;SPAN&gt;Document.visibilityState&lt;/SPAN&gt;&lt;SPAN&gt; API to monitor background activities and create a user action property within Dynatrace.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;Understanding Document.visibilityState&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN&gt;Document.visibilityState&lt;/SPAN&gt;&lt;SPAN&gt; property returns the visibility status of a document, helping determine if a page is in the background, an invisible tab, or pre-rendered. The possible values are:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;visible&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;: The page content may be at least partially visible. This typically means the page is the foreground tab of a non-minimized window.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;hidden&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;: The page content is not visible to the user. This usually indicates that the document is in a background tab, part of a minimized window, or the OS screen lock is active.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;prerender&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;: The page content is being pre-rendered and is not visible to the user (treated as hidden for purposes of &lt;/SPAN&gt;&lt;SPAN&gt;document.hidden&lt;/SPAN&gt;&lt;SPAN&gt;). The document may start in this state but will never transition to it from another value. Note: This value has been removed from the standard but may still appear in certain cases.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;By creating a user action property using &lt;/SPAN&gt;&lt;SPAN&gt;Document.visibilityState&lt;/SPAN&gt;&lt;SPAN&gt;, you can:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;SPAN&gt;Monitor when a page is in the background during load actions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;SPAN&gt;Analyze the impact of background activities on page resources loading, gaps between page resources&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;In some cases, you may notice that the document is marked as visible, yet background activities are still observed under "Show All Findings." This typically indicates that the user switched between tabs while the page was still loading.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For further details on &lt;/SPAN&gt;&lt;SPAN&gt;Document.visibilityState&lt;/SPAN&gt;&lt;SPAN&gt;, refer to this &lt;A href="https://udn.realityripple.com/docs/Web/API/Document/visibilityState" target="_self"&gt;documentation&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 08:37:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/RUM-Insights-into-Background-Activity/m-p/267387#M1549</guid>
      <dc:creator>Mohamed_Hamdy</dc:creator>
      <dc:date>2025-02-10T08:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: RUM: Insights into Background Activity</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/RUM-Insights-into-Background-Activity/m-p/267414#M1550</link>
      <description>&lt;P&gt;Thank you so much!&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://community.dynatrace.com/html/@9BD876A77FEF3D5EF4BC972CF8A97CB1/images/emoticons/take_my_money.png" alt=":take_my_money:" title=":take_my_money:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 15:26:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/RUM-Insights-into-Background-Activity/m-p/267414#M1550</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2025-01-14T15:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: RUM: Insights into Background Activity</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/RUM-Insights-into-Background-Activity/m-p/267422#M1551</link>
      <description>&lt;P&gt;Great tip, all the respect.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 16:30:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/RUM-Insights-into-Background-Activity/m-p/267422#M1551</guid>
      <dc:creator>MostafaHussein</dc:creator>
      <dc:date>2025-01-14T16:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: RUM: Insights into Background Activity</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/RUM-Insights-into-Background-Activity/m-p/271140#M1581</link>
      <description>&lt;P&gt;Is this going to be addressed in the new DEM on Grail?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 22:44:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/RUM-Insights-into-Background-Activity/m-p/271140#M1581</guid>
      <dc:creator>MartinKulov</dc:creator>
      <dc:date>2025-02-26T22:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: RUM: Insights into Background Activity</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/RUM-Insights-into-Background-Activity/m-p/271286#M1582</link>
      <description>&lt;P&gt;I won’t be able to confirm that definitively, but as far as I know, many aspects that are currently not quantifiable or queryable will be addressed.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 04:00:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/RUM-Insights-into-Background-Activity/m-p/271286#M1582</guid>
      <dc:creator>Mohamed_Hamdy</dc:creator>
      <dc:date>2025-02-28T04:00:27Z</dc:date>
    </item>
  </channel>
</rss>

