<?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: Minifying jqGrid from GitHub</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/minifying-jqgrid-from-github</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/discussion/minifying-jqgrid-from-github/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Minifying jqGrid from GitHub</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/minifying-jqgrid-from-github#p27780</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/minifying-jqgrid-from-github#p27780</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>in my opinion it would be gut to ask Tony to create more frequently minor jqGrid releases. For example one could create 4.4.2 now.</p>
<p>If you need to create <strong>jquery.jqGrid.min.js</strong> yourself you can do the following: If you would open&#160;<strong>jquery.jqGrid.min.js</strong>&#160;you will find the comment started with "<em>* Modules:</em>"&#160;directly at the beginning of the file. After the text "<em>* Modules:</em>" you will see</p>
<p><strong>grid.base.js; jquery.fmatter.js; grid.custom.js; grid.common.js; grid.formedit.js; grid.filter.js; grid.inlinedit.js; grid.celledit.js; jqModal.js; jqDnR.js; grid.subgrid.js; grid.grouping.js; grid.treegrid.js; grid.import.js; JsonXml.js; grid.tbltogrid.js; grid.jqueryui.js;</strong></p>
<p>It&#39;s the full list of modules of jqGrid included in the file <strong>jquery.jqGrid.min.js</strong>. You can concatinate the files from github in exactly the same order to create your version of <strong>jquery.jqGrid.src.js</strong>&#160;file.</p>
<p>Now you can use any minifier which you like to produce the resulting <strong>jquery.jqGrid.min.js</strong>. For example you can download &#160;<a href="http://ajaxmin.codeplex.com/" target="_blank">Microsoft Ajax Minifier</a>. To create <strong>jquery.jqGrid.min.js</strong>&#160;you can use</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2021' value='Select Code' data-codeid='sfcode2021' /></p>
<div class='sfcode' id='sfcode2021'>AjaxMin.exe -enc:in utf-8&#160;jquery.jqGrid.src.js -o jquery.jqGrid.min.js</div>
<p>If you want you can produce minimize version of <strong>grid.locale-XX.js</strong> files in the same way. Because the files contains Unicode characters you need use additional option <strong>-enc:out utf-8</strong> to have correctly encoded results.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1570' value='Select Code' data-codeid='sfcode1570' /></p>
<div class='sfcode' id='sfcode1570'>AjaxMin.exe -enc:in utf-8&#160;<strong>-enc:out utf-8</strong>&#160;grid.locale-de.js&#160;-o grid.locale-de.min.js</div>
<p>You can use the same option to create <strong>jquery.jqGrid.min.js</strong>&#160;too.</p>
<p>If you use some plugins from <strong>plugins</strong> subdirectory you can create minified version of the files too.</p>
<p>Advantage of <em>AjaxMin.exe</em> is that it can be used not only for minification of JS files, but for minification of CSS files too. For example I use <strong>ui.jqgrid.min.css</strong>&#160;in release version of my projects created with</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7411' value='Select Code' data-codeid='sfcode7411' /></p>
<div class='sfcode' id='sfcode7411'>AjaxMin.exe ui.jqgrid.css&#160;-o ui.jqgrid.min.css</div>
<p>Best regards<br />Oleg</p>
<p>P.S. By the way the <strong>jquery.jqGrid.min.js</strong>&#160;created with respect of <em>AjaxMin.exe</em>&#160;is a little smaller as the original <strong>jquery.jqGrid.min.js</strong>.</p></p>
]]></description>
        	        	<pubDate>Fri, 23 Nov 2012 16:26:52 +0200</pubDate>
        </item>
        <item>
        	<title>Seb33300 on Minifying jqGrid from GitHub</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/minifying-jqgrid-from-github#p27779</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/minifying-jqgrid-from-github#p27779</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Any way to easily&#160;minify jqgrid from github on windows ?</p>
]]></description>
        	        	<pubDate>Fri, 23 Nov 2012 14:48:53 +0200</pubDate>
        </item>
        <item>
        	<title>JamesKovacs on Minifying jqGrid from GitHub</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/minifying-jqgrid-from-github#p7424</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/minifying-jqgrid-from-github#p7424</guid>
        	        	<description><![CDATA[<p>Thanks for the quick reply, Tony. The UTF-8 flag fixed the errors. YUI Compressor should be sufficient to create minified builds for the project. No need to worry about the PHP version unless someone else needs it. For reference, here is the PowerShell command line that I&#39;m using to compress and combine all of the JS files into a single jquery.jqGrid.min.js file:</p>
<p>ls .\\jqGrid\\js\\*.js &#124; foreach { java -jar .\\yuicompressor-2.4.2.jar $_.FullName &#8211;charset utf-8 &#62;&#62; min\\jquery.jqGrid.min.js }</p>
<p>Thanks again.</p></p>
]]></description>
        	        	<pubDate>Tue, 23 Jun 2009 11:45:56 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Minifying jqGrid from GitHub</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/minifying-jqgrid-from-github#p7400</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/minifying-jqgrid-from-github#p7400</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Will see what I can do. The download manager is in php with a lot of modules that should be enabled.</p>
<p>Also I build jqGrid with YUI Compressor. In order to compress correct you should set a parameter --charset=utf-8 to the comand line of every module - i.e</p>
<p>java -jar yuicompressor-2.4.2.jar "grid.base.js" --charset=utf-8 -o "min\\grid.base.js"</p>
<p>Hope this will help</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 23 Jun 2009 02:24:24 +0300</pubDate>
        </item>
        <item>
        	<title>JamesKovacs on Minifying jqGrid from GitHub</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/minifying-jqgrid-from-github#p7398</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/minifying-jqgrid-from-github#p7398</guid>
        	        	<description><![CDATA[<p>Can you provide the minification script used to produce downloads for jqGrid 3.5? Right now the download page produces a zip of the minified files for jqGrid 3.5 Beta (build5), but I need some of the recent fixes that are only in GitHub. (We&#39;re just adding features that require tree grids.) I would like an easy way of producing minified files from GitHub so that I can easily track fixes. I would rather not have to swap between the loader and minified versions as fixes are released to GitHub and eventually the download page.</p>
<p>BTW - I tried YUI Compressor, but it fails on jquery.searchFilter.js with two illegal character and one syntax error. I&#39;d rather not create a custom version of this file that is ammenable to minification.</p>
<p>Thanks, James</p>
]]></description>
        	        	<pubDate>Mon, 22 Jun 2009 19:05:44 +0300</pubDate>
        </item>
</channel>
</rss>