Skip to content
Permalink
Browse files

Moved from the old JSMin to using YUIMin for compressing the jQuery s…

…ource. Additionally landed some improvements from #3770 which dramatically reduce the filesize. The final minifed + gzipped size of jQuery went from 19817 bytes to 18063 bytes.
  • Loading branch information
jeresig committed Jan 4, 2009
1 parent c029427 commit 434b87b8a233eb24ec773de801f3adb460fbd0f4
Showing with 7 additions and 3 deletions.
  1. +2 −1 Makefile
  2. BIN build/yuicompressor-2.4.2.jar
  3. +1 −1 src/ajax.js
  4. +3 −0 src/core.js
  5. +1 −1 src/offset.js
@@ -50,6 +50,7 @@ JQ_VER = `cat version.txt`
VER = sed s/@VERSION/${JQ_VER}/

JAR = java -jar ${BUILD_DIR}/js.jar
MINJAR = java -jar ${BUILD_DIR}/yuicompressor-2.4.2.jar

all: jquery lite min pack speed
@@echo "jQuery build complete."
@@ -104,7 +105,7 @@ ${JQ_MIN}: ${JQ}
@@echo "Building" ${JQ_MIN}

@@echo " - Compressing using Minifier"
@@${JAR} ${BUILD_DIR}/build/min.js ${JQ} ${JQ_MIN}
@@${MINJAR} ${JQ} > ${JQ_MIN}

@@echo ${JQ_MIN} "Built"
@@echo
Binary file not shown.
@@ -497,7 +497,7 @@ jQuery.extend({

// Get the JavaScript object, if JSON is used.
if ( type == "json" )
data = eval("(" + data + ")");
data = window["eval"]("(" + data + ")");
}

return data;
@@ -9,6 +9,9 @@
* $Rev$
*/

// Will speed up references to window, and allows munging its name.
var window = this;

// Map over jQuery in case of overwrite
var _jQuery = window.jQuery,
// Map over the $ in case of overwrite
@@ -50,7 +50,7 @@ else
jQuery.offset = {
initialize: function() {
if ( this.initialized ) return;
var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, rules, prop, bodyMarginTop = body.style.marginTop,
var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, td, rules, prop, bodyMarginTop = body.style.marginTop,
html = '<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"cellpadding="0"cellspacing="0"><tr><td></td></tr></table>';

rules = { position: 'absolute', top: 0, left: 0, margin: 0, border: 0, width: '1px', height: '1px', visibility: 'hidden' };

0 comments on commit 434b87b

Please sign in to comment.
You can’t perform that action at this time.