70
jQuery 1.9 and 2.0 Present and Future

jQuery 1.9 and 2.0 - Present and Future

Embed Size (px)

DESCRIPTION

jQuery has grown over 7 years to become the most widely used JavaScript library ever. This talk will cover how the jQuery project continues to support the browsers of the past, present, and future while also delivering modularity, innovation, and mobile support.

Citation preview

jQuery 1.9 and 2.0Present and Future

Richard D. WorthExecutive Director, jQuery Foundation

@rworth [email protected]

jQuery UK - Oxford April 19 2013

write less, do more

Scope

DOM Manipulation

DOM ManipulationEvents

DOM ManipulationEventsE�ects

DOM ManipulationEventsE�ectsAjax

DOM ManipulationEventsE�ectsAjax

LessMore

LessMoreStu�

LessMoreStu� plugins

LessMoreStu�UI controls

plugins

LessMoreStu�UI controls

pluginsjQuery UI

LessMoreStu�UI controlsTouch

pluginsjQuery UI

LessMoreStu�UI controlsTouch

pluginsjQuery UI

jQuery Mobile

Stu�UI controlsTouch

LessMoreStu�UI controlsTouchMVC

pluginsjQuery UI

jQuery Mobile

Stu�UI controlsTouch

LessMoreStu�UI controlsTouchMVC

pluginsjQuery UI

jQuery MobileBackbone, etc.

Stu�UI controlsTouchMVC

pluginsjQuery UI

jQuery Mobile

jQuery 1.8 orearlier 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 10web developers

use jQuery

9 out of 10web developers

use jQuery

jQuery 2.0Final

blog.jquery.com

Available now onthe jQuery CDN

code.jquery.com

<script src="jquery.js"></script><script src="jquery-migrate.js"></script>

Google andMicrosoft CDNs

soon

3 Features2 Promises1 Invitation

Feature#1

jQuery 2.0drops support for

IE 6, 7, 8

This is NOT

YMMV

All code tomake jQuery work

in IE 6, 7, 8 wasREMOVED from 2.0

12%smaller

“CompatabilityView” modes

X-UA-Compatibletag or HTTP header

Header isrecommended

Feature#2

jQuery 2.0 isdeigned for

the modern web

jQuery 2.0 isdeigned for

the modern web

Compatibility codefor Old IE caused

issues in someenvironments

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 optionallyexcludable

modules

• Ajax• CSS• Dimensions• Effects

Some Modules• Offset• Wrap• Sizzle• ...

• Ajax• CSS• Dimensions• Effects

DOM Manip. &Selecting

The core ofjQuery Core 2.0

10kminified + gzipped

3 Features2 Promises1 Invitation

3 Features2 Promises1 Invitation

Promise#1

The jQuery Teamwill supportjQuery v1.X

for as long asIE 6, 7, 8 is revelant

SeveralMoreYears

ConditionalComments

If you need tosupport IE 6, 7, 8

use 1.9 / 1.X

Please testjQuery 2.0 on

your site, evenif you use 1.9

Promise#2

The jQuery Teamwill support

API equivalencebetween

1.1X and 2.X10kminified + gzipped

1.10 will bereleased within

a couple ofmonths

1.1X <-> 2.X1.10 <-> 2.01.11 <-> 2.11.12 <-> 2.2

Invitation

Join Us• learn.jquery.com• contribute.jquery.org• jquery.org/join