jQuery 1.9 and 2.0
Present and Future
Richard D. Worth
        Executive Director, jQuery Foundation


     @rworth          richard@jquery.com

jQuery UK - Oxford                     April 19 2013
write less, do more
Scope
DOM Manipulation
DOM Manipulation
Events
DOM Manipulation
Events
Effects
DOM Manipulation
Events
Effects
Ajax
DOM Manipulation
Events
Effects
Ajax
More   Less
More    Less
Stuff
More       Less
Stuff   plugins
More             Less
Stuff         plugins
UI controls
More               Less
Stuff           plugins
UI controls   jQuery UI
More               Less
Stuff           plugins
UI controls   jQuery UI
Touch
More                 Less
Stuff             plugins
UI controls     jQuery UI
Touch       jQuery Mobile
More                 Less
Stuff             plugins
UI controls     jQuery UI
Touch       jQuery Mobile
MVC
More                 Less
Stuff             plugins
UI controls     jQuery UI
Touch       jQuery Mobile
MVC        Backbone, etc.
jQuery 1.8 or
earlier versions?
1.9 Upgrade Guide
Migrate Plugin
github.com/jquery/
   jquery-migrate
<script src="jquery.js"></script>
<script src="jquery-migrate.js"></script>
Migrate Plugin Example
trends.builtwith.com

     W3Techs
56.7%
all web sites
61.3%
top 10,000 sites
91.2%
sites with JavaScript
9 out of 10
web developers
  use jQuery
9 out of 10
web developers
  use jQuery
jQuery 2.0
  Final
blog.jquery.com
Available now on
 the jQuery CDN

code.jquery.com
Google and
Microsoft CDNs
     soon
3 Features
2 Promises
1 Invitation
Feature
  #1
jQuery 2.0
drops support for

    IE 6, 7, 8
This is NOT


YMMV
All code to
make jQuery work
 in IE 6, 7, 8 was
REMOVED from 2.0
12%
smaller
“Compatability
 View” modes
X-UA-Compatible
tag or HTTP header
     Header is
  recommended
Feature
  #2
jQuery 2.0 is
   deigned for
the modern web
jQuery 2.0 is
   deigned for
the modern web
Compatibility code
 for Old IE caused
  issues in some
  environments
Perfect 2.0 Environments
• Google Chrome add-ons
• Mozilla XUL apps, Firefox ext.
• Firefox OS apps
• Chrome OS apps
• Windows 8 Store
 (”Modern/Metro UI”) apps
Perfect 2.0 Environments
• BlackBerry 10 WebWorks apps
• PhoneGap/Cordova apps
• Apple UIWebView Class
• Microsoft WebBrowser Control
• node.js (combined with jsdom
  or similar)
Modern Environments
• Are themselves a work in
  progress
• Have a unique set of rules
  or restrictions
• Are different from typical
  jQuery env. - web browser
Modern Environments
• We aren’t able to test regularly
  in all these non-browser
  scenarioes
• We’d like to hear about your
  experiences in using them
Feature
  #3
12 optionally
 excludable
  modules
Some Modules
• Ajax         • Offset
• CSS          • Wrap
• Dimensions   • Sizzle
• Effects       • ...
DOM Manip. &
  Selecting
The core of
jQuery Core 2.0

                  10k
            minified + gzipped
3 Features
2 Promises
1 Invitation
3 Features
2 Promises
1 Invitation
Promise
   #1
The jQuery Team
    will support
    jQuery v1.X
   for as long as
IE 6, 7, 8 is revelant
Several
 More
 Years
Conditional
Comments
If you need to
support IE 6, 7, 8
  use 1.9 / 1.X
Please test
 jQuery 2.0 on
your site, even
 if you use 1.9
Promise
  #2
The jQuery Team
  will support
API equivalence
    between
  1.1X and 2.X
1.10 will be
released within
  a couple of
     months
1.1X    <->   2.X
1.10    <->   2.0
 1.11   <->   2.1
1.12    <->   2.2
Invitation
Join Us
• learn.jquery.com
• contribute.jquery.org
• jquery.org/join
membership@jquery.com

jQuery 1.9 and 2.0 - Present and Future