<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.opentaps.org/docs/index.php?action=history&amp;feed=atom&amp;title=Optimizations_in_Javascripts_and_CSS_files</id>
	<title>Optimizations in Javascripts and CSS files - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.opentaps.org/docs/index.php?action=history&amp;feed=atom&amp;title=Optimizations_in_Javascripts_and_CSS_files"/>
	<link rel="alternate" type="text/html" href="https://docs.opentaps.org/docs/index.php?title=Optimizations_in_Javascripts_and_CSS_files&amp;action=history"/>
	<updated>2026-05-15T17:03:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>https://docs.opentaps.org/docs/index.php?title=Optimizations_in_Javascripts_and_CSS_files&amp;diff=5613&amp;oldid=prev</id>
		<title>Jwickers: Protected &quot;Optimizations in Javascripts and CSS files&quot;: Sysop page [edit=sysop:move=sysop]</title>
		<link rel="alternate" type="text/html" href="https://docs.opentaps.org/docs/index.php?title=Optimizations_in_Javascripts_and_CSS_files&amp;diff=5613&amp;oldid=prev"/>
		<updated>2010-03-01T20:08:47Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/docs/index.php?title=Optimizations_in_Javascripts_and_CSS_files&quot; title=&quot;Optimizations in Javascripts and CSS files&quot;&gt;Optimizations in Javascripts and CSS files&lt;/a&gt;&amp;quot;: Sysop page [edit=sysop:move=sysop]&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 20:08, 1 March 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Jwickers</name></author>
		
	</entry>
	<entry>
		<id>https://docs.opentaps.org/docs/index.php?title=Optimizations_in_Javascripts_and_CSS_files&amp;diff=5612&amp;oldid=prev</id>
		<title>Jwickers: New page: == Javascripts ==  === Note on DOJO ===  The DOJO files can be combined using the packager included with the DOJO sources. The opentaps DOJO files are based on the 0.9.0 release.  To make ...</title>
		<link rel="alternate" type="text/html" href="https://docs.opentaps.org/docs/index.php?title=Optimizations_in_Javascripts_and_CSS_files&amp;diff=5612&amp;oldid=prev"/>
		<updated>2010-03-01T20:08:47Z</updated>

		<summary type="html">&lt;p&gt;New page: == Javascripts ==  === Note on DOJO ===  The DOJO files can be combined using the packager included with the DOJO sources. The opentaps DOJO files are based on the 0.9.0 release.  To make ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Javascripts ==&lt;br /&gt;
&lt;br /&gt;
=== Note on DOJO ===&lt;br /&gt;
&lt;br /&gt;
The DOJO files can be combined using the packager included with the DOJO sources. The opentaps DOJO files are based on the 0.9.0 release.&lt;br /&gt;
&lt;br /&gt;
To make a packaged DOJO:&lt;br /&gt;
* get the release tarball with sources: dojo-release-0.9.0-src.tar.gz&lt;br /&gt;
* define the profile (set of modules included in a package) by creating util/buildscripts/profiles/opentaps.profile.js with:&lt;br /&gt;
   dependencies = {&lt;br /&gt;
        layers: [&lt;br /&gt;
                {&lt;br /&gt;
                        name: &amp;quot;opentaps-dojo.js&amp;quot;,&lt;br /&gt;
                        dependencies: [&lt;br /&gt;
                                       &amp;quot;dojo.fx&amp;quot;,&lt;br /&gt;
                                       &amp;quot;dojo.dnd.source&amp;quot;,&lt;br /&gt;
                                       &amp;quot;dojo.dnd.manager&amp;quot;,&lt;br /&gt;
                                       &amp;quot;dojo.dnd.move&amp;quot;,&lt;br /&gt;
                                       &amp;quot;dojo.currency&amp;quot;,&lt;br /&gt;
                                       &amp;quot;dojo.data.JsonItemStore&amp;quot;,&lt;br /&gt;
                                       &amp;quot;dojo.data.JsonItemStoreAutoComplete&amp;quot;,&lt;br /&gt;
                                       &amp;quot;dijit.Tree&amp;quot;,&lt;br /&gt;
                                       &amp;quot;dijit.Dialog&amp;quot;,&lt;br /&gt;
                                       &amp;quot;dijit.form.window&amp;quot;,&lt;br /&gt;
                                       &amp;quot;dijit.form.Form&amp;quot;,&lt;br /&gt;
                                       &amp;quot;dijit.form.Button&amp;quot;,&lt;br /&gt;
                                       &amp;quot;dijit.form.ComboBox&amp;quot;,&lt;br /&gt;
                                       &amp;quot;dijit.layout.ContentPane&amp;quot;,&lt;br /&gt;
                                       &amp;quot;dijit.nls.loading&amp;quot;&lt;br /&gt;
                        ]&lt;br /&gt;
                }&lt;br /&gt;
        ],&lt;br /&gt;
        prefixes: [&lt;br /&gt;
                   [ &amp;quot;dijit&amp;quot;, &amp;quot;../dijit&amp;quot; ],&lt;br /&gt;
                   [ &amp;quot;dojox&amp;quot;, &amp;quot;../dojox&amp;quot; ]&lt;br /&gt;
        ]&lt;br /&gt;
   }&lt;br /&gt;
* in util/buildscripts : do ./build.sh profile=opentaps action=release copyTests=false&lt;br /&gt;
* get the files from release/dojo&lt;br /&gt;
* this includes a opentaps-dojo.js which will be used later&lt;br /&gt;
&lt;br /&gt;
Note that for opentaps dome patches were applies (see the revision control system).&lt;br /&gt;
&lt;br /&gt;
To include in a HTML page, the simple dojo.js must still be included first&lt;br /&gt;
&lt;br /&gt;
=== Packing other JS files ===&lt;br /&gt;
&lt;br /&gt;
From hot-deploy/opentaps-common/webapp/js:&lt;br /&gt;
* merge the various scripts&lt;br /&gt;
   cat protoaculous.1.8.2.p1.6.1.min.js ../../../../framework/images/webapp/images/calendar_date_select.js opentaps.js selectall.js fieldlookup.js formwidget.js opentapsDisplayEffects.js opentapsWindow.js shortcuts.js jscalendar-1.0/calendar.js jscalendar-1.0/calendar-setup.js &amp;gt; opentaps-packed1.js&lt;br /&gt;
* pack with [[http://www.crockford.com/javascript/jsmin.html jsmin]]&lt;br /&gt;
   jsmin &amp;lt;opentaps-packed1.js &amp;gt;opentaps-packed.js&lt;br /&gt;
* merge with the dojo package in hot-deploy/opentaps-common/webapp/js/dojo_0.90/dojo&lt;br /&gt;
   cat opentaps-dojo.js ../../opentaps-packed.js &amp;gt; opentaps-dojo-packed.js&lt;br /&gt;
&lt;br /&gt;
== CSS files ==&lt;br /&gt;
&lt;br /&gt;
The CSS files where already merged, except the jscalendar CSS (since this is an external module), to merge it, in hot-deploy/opentaps-common/webapp/css&lt;br /&gt;
   cat opentaps.css ../js/jscalendar-1.0/calendar-system.css &amp;gt; opentaps-packed.css&lt;br /&gt;
&lt;br /&gt;
To further reduce the CSS file size an external CSS compressor can be used (for example http://www.cleancss.com/).&lt;/div&gt;</summary>
		<author><name>Jwickers</name></author>
		
	</entry>
</feed>