<?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: application.js not loading?? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/application-js-not-loading/m-p/102453#M5765</link>
    <description>&lt;P&gt;Sure, but you cant clear your users' caches for them, so it can be worse than nothing in production.&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2011 17:01:30 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2011-05-16T17:01:30Z</dc:date>
    <item>
      <title>application.js not loading??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/application-js-not-loading/m-p/102450#M5762</link>
      <description>&lt;P&gt;I want to modify some aspects of my app with javascript.&lt;/P&gt;

&lt;P&gt;Have placed a application.js file in appname/appserver/static&lt;/P&gt;

&lt;P&gt;When I refresh any page in my app I dont see the application.js file being included with any script tag.&lt;/P&gt;

&lt;P&gt;We are using Splunk 4.1.7&lt;/P&gt;

&lt;P&gt;What am I missing?&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2011 11:16:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/application-js-not-loading/m-p/102450#M5762</guid>
      <dc:creator>johandk</dc:creator>
      <dc:date>2011-05-16T11:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: application.js not loading??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/application-js-not-loading/m-p/102451#M5763</link>
      <description>&lt;P&gt;A couple issues here to know: &lt;/P&gt;

&lt;P&gt;1) restart splunkWeb?   when you first add it, application.js wont show up until you restart splunkWeb.   Or you can restart the whole server, but restarting splunkWeb is sufficient and although splunk will dissappear for a couple seconds nobody gets logged out which is nice.&lt;/P&gt;

&lt;P&gt;2) The 'bump' endpoint. If you're just changing an existing application.js, or application.css, or a custom module file for that matter,  beware of cacheing.  SplunkWeb has VERY aggressive cache headers.  And then other techniques are employed to bust those caches.  &lt;/P&gt;

&lt;P&gt;a) static URLs have a segment in them that is the actual Splunk build number, to bust the cache on upgrade of the core product. &lt;/P&gt;

&lt;P&gt;b) static URLs have a segment in them that is the 'build' number from the current app's app.conf. This is to bust the cache on app upgrade - note that a bug exists whereby custom module URLs do not get this number so sometimes the admin upgrading the app has to do #3 themselves.&lt;/P&gt;

&lt;P&gt;c) static URLs have a segment in them that is the 'bump' number.  This is so that admins and app-developers can manually hit a button on a particular Splunk instance and bust everybody's cache.  Go to &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="http://&amp;lt;your" target="test_blank"&gt;http://&amp;lt;your&lt;/A&gt; host and port&amp;gt;/en-US/_bump
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and click the button you see there. &lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2011 16:48:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/application-js-not-loading/m-p/102451#M5763</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-05-16T16:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: application.js not loading??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/application-js-not-loading/m-p/102452#M5764</link>
      <description>&lt;P&gt;To point #2, also consider explicitly clearing cache in the browser. There's also a Clear Cache Button addon for Firefox that's nice to have when testing app changes.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2011 16:58:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/application-js-not-loading/m-p/102452#M5764</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2011-05-16T16:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: application.js not loading??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/application-js-not-loading/m-p/102453#M5765</link>
      <description>&lt;P&gt;Sure, but you cant clear your users' caches for them, so it can be worse than nothing in production.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2011 17:01:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/application-js-not-loading/m-p/102453#M5765</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-05-16T17:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: application.js not loading??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/application-js-not-loading/m-p/102454#M5766</link>
      <description>&lt;P&gt;It was in fact just a simple restart of splunk that was needed. Is this the same case with application.css? There really needs to be more documentation on this.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2011 07:12:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/application-js-not-loading/m-p/102454#M5766</guid>
      <dc:creator>johandk</dc:creator>
      <dc:date>2011-05-20T07:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: application.js not loading??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/application-js-not-loading/m-p/102455#M5767</link>
      <description>&lt;P&gt;Yea it's the same with application.css, also with customFileName.css that you may include with stylesheet="customFileName.css" in the top level tag in the XML.  Also the case with custom modules.  And you actually only need to do 'splunk restart splunkWeb', which is a lot lighter weight and wont even log anybody out.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2011 16:58:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/application-js-not-loading/m-p/102455#M5767</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-05-20T16:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: application.js not loading??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/application-js-not-loading/m-p/102456#M5768</link>
      <description>&lt;P&gt;If you are using splunk's simple xml to design your page.. rename your &lt;STRONG&gt;"application.js"&lt;/STRONG&gt; as &lt;STRONG&gt;"dashboard.js"...&lt;/STRONG&gt;&lt;BR /&gt;
same is applicable for css.... &lt;STRONG&gt;"application.css"&lt;/STRONG&gt; to &lt;STRONG&gt;"dashboard.css"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Splunk internally loads... application.XX for advanced xml and dashboard.XX for simple xml&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2015 05:59:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/application-js-not-loading/m-p/102456#M5768</guid>
      <dc:creator>paramagurukarth</dc:creator>
      <dc:date>2015-02-24T05:59:33Z</dc:date>
    </item>
  </channel>
</rss>

