aboutsummaryrefslogtreecommitdiffstats
path: root/src/intro.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-08-21 05:43:44 +0000
committerJohn Resig <jeresig@gmail.com>2007-08-21 05:43:44 +0000
commitb6d920cf05fae3dcfe515166013ce39411ac5e16 (patch)
tree8c7e1879e92f4b7de49a3ca8398b2f96de61730f /src/intro.js
parent8c15e852a4614ba5a5100e1c6e8a833c39b4ca79 (diff)
downloadjquery-b6d920cf05fae3dcfe515166013ce39411ac5e16.tar.gz
jquery-b6d920cf05fae3dcfe515166013ce39411ac5e16.zip
Fix for a selector speed regression (calling a simple selector many times resulted in a significant speed down). This has been fixed by breaking the RegExps out into the global scope. This required that a closure be implemented around the full jQuery script (which is now the case). Some simple changes were made in addition to the RegExp one, allowing for some greater flexibility on our part - and hopefully better compression.
Speed results: http://dev.jquery.com/~john/ticket/1351/ vs. http://dev.jquery.com/~john/ticket/1351/113.html vs. http://dev.jquery.com/~john/ticket/1351/112.html
Diffstat (limited to 'src/intro.js')
-rw-r--r--src/intro.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intro.js b/src/intro.js
index 9204081a2..2e64f66c0 100644
--- a/src/intro.js
+++ b/src/intro.js
@@ -1,2 +1,2 @@
// prevent execution of jQuery if included more than once
-if(typeof window.jQuery == "undefined") {
+if(typeof window.jQuery == "undefined") (function(){