<?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 Running/Hosting JS file in a QuickStart Site in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/running-hosting-js-file-in-a-quickstart-site/m-p/273924#M227054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an issue I'm wondering if someone can point me in the right direction. I hosting a JS file (actually several) my QuickStart site Document Library and I'm making a call to it (them) in my page. I've done this because I need to make changes to this file (these files) occasionally. While this functions there seems to be an artificial delay in loading the file. On my live server somewhere between 8-21 seconds. I can verify this by bringing the file up in my browser via URL. I think it has something to do with it's Extension not being interpreted by the QuickStart site. Any other file such as HTML loads quickly and with a template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way I can have the site display/serve this file quickly and without it being wrapped in any template code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And just for clarification the SpacesStore address won't work for what I'm doing. I need to be able to use the WCM virtual path. Something like &lt;/SPAN&gt;&lt;A href="http://www.mysite.com/wcmqs/scripts/myscript.js" rel="nofollow noopener noreferrer"&gt;http://www.mysite.com/wcmqs/scripts/myscript.js&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2011 14:48:02 GMT</pubDate>
    <dc:creator>foosetv</dc:creator>
    <dc:date>2011-03-17T14:48:02Z</dc:date>
    <item>
      <title>Running/Hosting JS file in a QuickStart Site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/running-hosting-js-file-in-a-quickstart-site/m-p/273924#M227054</link>
      <description>I have an issue I'm wondering if someone can point me in the right direction. I hosting a JS file (actually several) my QuickStart site Document Library and I'm making a call to it (them) in my page. I've done this because I need to make changes to this file (these files) occasionally. While this fu</description>
      <pubDate>Thu, 17 Mar 2011 14:48:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/running-hosting-js-file-in-a-quickstart-site/m-p/273924#M227054</guid>
      <dc:creator>foosetv</dc:creator>
      <dc:date>2011-03-17T14:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Running/Hosting JS file in a QuickStart Site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/running-hosting-js-file-in-a-quickstart-site/m-p/273925#M227055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not certain what would cause a delay as you describe, but you can define a template that simply passes the content of the asset through fairly easily. See &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=52&amp;amp;t=36902#p108322" rel="nofollow noopener noreferrer"&gt;my reply to a related question about returning pre-rendered XML unchanged&lt;/A&gt;&lt;SPAN&gt;. The part that is directly relevant to you is step 3 in that post that describes how to create a "raw" template. Instead of step 4 you probably want to define a template mapping on your "scripts" section similar to "ws:article=raw" (all you JavaScript files should be of the ws:article type).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Mar 2011 20:47:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/running-hosting-js-file-in-a-quickstart-site/m-p/273925#M227055</guid>
      <dc:creator>bremmington</dc:creator>
      <dc:date>2011-03-19T20:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Running/Hosting JS file in a QuickStart Site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/running-hosting-js-file-in-a-quickstart-site/m-p/273926#M227056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I saw that post just after I made my post. It actually helped to some extent and is handy template to have. It didn't completely solve my problem but I did see some improvement. I have an overall speed issue in that anything in the WCM site loads slower than anything else on the server (which also is seeming a bit slow), there seems to be some overhead. I think it might be a database issue. I made a post in another thread on the boards here about maximum groups and user accounts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, in my opinion I think it would be beneficial if this raw template was included in the WCM package out of the box. It is pretty easy to create but I think it would be helpful to new users to include it with the other default templates. Any chance of including it in future relases?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 17:07:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/running-hosting-js-file-in-a-quickstart-site/m-p/273926#M227056</guid>
      <dc:creator>foosetv</dc:creator>
      <dc:date>2011-03-23T17:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Running/Hosting JS file in a QuickStart Site</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/running-hosting-js-file-in-a-quickstart-site/m-p/273927#M227057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yep, I can add that into the product easily. I'll get it in for the next release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure what the performance issue might be. Would be interested to hear if you get to the bottom of it. We see very good performance under test.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 13:44:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/running-hosting-js-file-in-a-quickstart-site/m-p/273927#M227057</guid>
      <dc:creator>bremmington</dc:creator>
      <dc:date>2011-03-24T13:44:53Z</dc:date>
    </item>
  </channel>
</rss>

