<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Combined Loading of included JS</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/combined-loading-of-included-js</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/feature-request/combined-loading-of-included-js/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Combined Loading of included JS</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/combined-loading-of-included-js#p6275</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/combined-loading-of-included-js#p6275</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p><a href="http://rakaz.nl/projects/combine/combine.phps" rel="nofollow" target="_blank"><a href="http://rakaz.nl/projects/combi" rel="nofollow">http://rakaz.nl/projects/combi</a>.....mbine.phps</a></p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 25 Apr 2009 05:21:44 +0300</pubDate>
        </item>
        <item>
        	<title>jeff on Combined Loading of included JS</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/combined-loading-of-included-js#p6249</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/combined-loading-of-included-js#p6249</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I would like to use this combinedIntoOne feature, but there is no combine.php file with the jqGrid code. Where can I get the combine.php file?</p>
<p>I am using jqGrid 3.4.3.</p>
<p>Thanks!<br />--jeff</p>
]]></description>
        	        	<pubDate>Fri, 24 Apr 2009 03:16:09 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Combined Loading of included JS</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/combined-loading-of-included-js#p2277</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/combined-loading-of-included-js#p2277</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I have make some tests and it seems that this work like a charm.</p>
<p>The loading of the script is more that 10 time faster.</p>
<p>Of course there are some limitations.</p>
<ul>
<li>IE does not support gzip, but instead of this the speed is impressed.</li>
</ul>
<ul>
<li>This can be used only in PHP</li>
<li>We should have a combine script</li>
</ul>
<p>Instead of this I will include this in the upcomming release again with the</p>
<p>combine.php script.</p>
<p>Thanks</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 01 Oct 2008 04:09:14 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Combined Loading of included JS</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/combined-loading-of-included-js#p2249</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/combined-loading-of-included-js#p2249</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thank you very much for this. I will make some tests and if possible will include this in the upcomming release.</p>
<p>Thank you</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 29 Sep 2008 09:23:14 +0300</pubDate>
        </item>
        <item>
        	<title>dasher on Combined Loading of included JS</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/combined-loading-of-included-js#p2240</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/combined-loading-of-included-js#p2240</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I needed to combine loading of the included JS into a single request to reduce load time &#38; requests against our environment.</p>
<p>Atteched is a unified diff of the changes to jquery.jqGrid.js:</p>
<p>function jqGridInclude()<br />&#160;{<br />-&#160;&#160;&#160; var pathtojsfiles = "/java/js/"; // need to be ajusted<br />+&#160;&#160;&#160; var pathtojsfiles = "js/"; // need to be ajusted<br />&#160;&#160;&#160;&#160; // if you do not want some module to be included<br />&#160;&#160;&#160;&#160; // set include to false.<br />&#160;&#160;&#160;&#160; // by default all modules are included.<br />&#160;&#160;&#160;&#160; var minver = true;<br />+&#160;&#160;&#160; var combineIntoOne = true;<br />+&#160;&#160;&#160; var combinedInclude = new Array();<br />+&#160;&#160;&#160; var combinedIncludeURL = "/static/combine.php?type=javascript&#38;files=";<br />+&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160; var modules = [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.base.js&#39;,minfile: &#39;min/grid.base-min.js&#39;}, // jqGrid base<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.formedit.js&#39;,minfile: &#39;min/grid.formedit-min.js&#39; }, // jqGrid Form editing<br />@@ -14,13 +18,27 @@<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.custom.js&#39;,minfile: &#39;min/grid.custom-min.js&#39;}, //jqGrid custom <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.postext.js&#39;,minfile: &#39;min/grid.postext-min.js&#39;} //jqGrid postext<br />&#160;&#160;&#160;&#160; ];<br />-&#160;&#160;&#160; for(var i=0;i&#60;modules.length; i++)<br />-&#160;&#160;&#160; {<br />+&#160;&#160;&#160; for(var i=0;i&#60;modules.length; i++) {<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160; var filename = "";<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(modules[i].include === true) {<br />-&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; if (minver !== true) IncludeJavaScript(pathtojsfiles+modules[i].incfile,CallMe);<br />-&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; else IncludeJavaScript(pathtojsfiles+modules[i].minfile,CallMe);<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; if (minver !== true) {<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; filename = pathtojsfiles+modules[i].incfile;<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } else {<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; filename = pathtojsfiles+modules[i].minfile;<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (combineIntoOne !== true) {<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; IncludeJavaScript(pathtojsfiles+modules[i].incfile,CallMe);<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } else {<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; combinedInclude[combinedInclude.length] = filename;<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160; }<br />+<br />+&#160;&#160;&#160; if ((combineIntoOne === true) &#38;&#38; (combinedInclude.length&#62;0) ) {<br />+&#160;&#160;&#160;&#160;&#160; var fileList = implode(",",combinedInclude);<br />+&#160;&#160;&#160;&#160;&#160; IncludeJavaScript(combinedIncludeURL+fileList,CallMe);<br />+&#160;&#160;&#160; }<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160; function CallMe() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return true;<br />&#160;&#160;&#160;&#160; }<br />@@ -41,6 +59,15 @@<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; };<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return false;<br />&#160;&#160;&#160;&#160; }<br />+&#160;&#160;&#160; function implode( glue, pieces ) {<br />+&#160;&#160;&#160;&#160;&#160; // <a href="http://kevin.vanzonneveld.net" rel="nofollow" target="_blank">http://kevin.vanzonneveld.net</a><br />+&#160;&#160;&#160;&#160;&#160; // +&#160;&#160; original by: Kevin van Zonneveld (<a href="http://kevin.vanzonneveld.net" rel="nofollow" target="_blank">http://kevin.vanzonneveld.net</a>)<br />+&#160;&#160;&#160;&#160;&#160; // +&#160;&#160; improved by: _argos<br />+&#160;&#160;&#160;&#160;&#160; // *&#160;&#160;&#160;&#160; example 1: implode(&#39; &#39;, [&#39;Kevin&#39;, &#39;van&#39;, &#39;Zonneveld&#39;]);<br />+&#160;&#160;&#160;&#160;&#160; // *&#160;&#160;&#160;&#160; returns 1: &#39;Kevin van Zonneveld&#39;<br />+&#160;&#160; <br />+&#160;&#160;&#160;&#160;&#160; return ( ( pieces instanceof Array ) ? pieces.join ( glue ) : pieces );<br />+&#160;&#160;&#160; }<br />&#160;}<br />&#160;<br />&#160;jqGridInclude();</p></p>
]]></description>
        	        	<pubDate>Fri, 26 Sep 2008 10:02:01 +0300</pubDate>
        </item>
</channel>
</rss>