<?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 JS Wait page fully loaded in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/JS-Wait-page-fully-loaded/m-p/73569#M181102</link>
    <description>&lt;P&gt;Hi&lt;BR /&gt;
I can't find any information on this subject so i ask you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
I work on my application.js and i need to do some css work but &lt;STRONG&gt;only when all searches on my dashboard are finished&lt;/STRONG&gt;. Some of them need more than 10 seconds to be fully loaded.&lt;/P&gt;

&lt;P&gt;Tried the standard Jquery ready but dosn't work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$(document).ready(function() {}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For now i use &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;setTimeout(function(){
    $('.panel_row2_col').before("&amp;lt;div id=monitoring&amp;gt;&amp;lt;/div&amp;gt;");
}, 20000);
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it's clearly only a workaround.&lt;/P&gt;

&lt;P&gt;Thx for any help !&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2013 07:57:38 GMT</pubDate>
    <dc:creator>timmalos</dc:creator>
    <dc:date>2013-09-26T07:57:38Z</dc:date>
    <item>
      <title>JS Wait page fully loaded</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JS-Wait-page-fully-loaded/m-p/73569#M181102</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I can't find any information on this subject so i ask you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
I work on my application.js and i need to do some css work but &lt;STRONG&gt;only when all searches on my dashboard are finished&lt;/STRONG&gt;. Some of them need more than 10 seconds to be fully loaded.&lt;/P&gt;

&lt;P&gt;Tried the standard Jquery ready but dosn't work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$(document).ready(function() {}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For now i use &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;setTimeout(function(){
    $('.panel_row2_col').before("&amp;lt;div id=monitoring&amp;gt;&amp;lt;/div&amp;gt;");
}, 20000);
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it's clearly only a workaround.&lt;/P&gt;

&lt;P&gt;Thx for any help !&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2013 07:57:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JS-Wait-page-fully-loaded/m-p/73569#M181102</guid>
      <dc:creator>timmalos</dc:creator>
      <dc:date>2013-09-26T07:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: JS Wait page fully loaded</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JS-Wait-page-fully-loaded/m-p/73570#M181103</link>
      <description>&lt;P&gt;There is an event called "PageReady" which is triggered by the PageStatus object. &lt;/P&gt;

&lt;P&gt;I'm not sure to what extent the splunk UI uses this itself - possibly only the old pdfserver app uses it still, but I just tested on 5.0.4 and it does appear to still work. &lt;/P&gt;

&lt;P&gt;Essentially PageStatus keeps track not just of the main HTML page load, but also all async processes like flash canvas loading, jobs still being dispatched, running jobs still running, flash canvas still rendering etc.. and it only gives the all clear in the form of that "PageReady" event, when everything has settled down and all jobs are completed. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;$(document).bind("PageReady", someFunction);&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I would throw an extra couple seconds of setTimeout in there for good measure though, because if it's no longer heavily used in the core product there might be some renders that are no longer being factored into the overall "ready" logic. &lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2013 07:42:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JS-Wait-page-fully-loaded/m-p/73570#M181103</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-09-28T07:42:00Z</dc:date>
    </item>
  </channel>
</rss>

