banquet 36

22
夜宴:技术前哨站 2010.8.9 钨龙

Upload: koubei-ued

Post on 31-May-2015

349 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Banquet 36

夜宴:技术前哨站 2010.8.9

钨龙

Page 2: Banquet 36

Qzone 即将推用户更新IE6

Page 3: Banquet 36

• IE 9

– 在9月份进行公开测试

• Firefox 4.0 beta 2

– 已经开始公测,9月1日发布

• Chrome

– 加快发布周期

• Safari

– Safari浏览器扩展由第三方开发者使用HTML5、CSS3、JavaScript等开

放网页标准写成.

Page 4: Banquet 36
Page 5: Banquet 36

http://www.w3.org/TR/2010/WD-html5-20100304/dom.html#kinds-of-content

http://www.w3.org/TR/2010/WD-html5-20100304/text-level-semantics.html#text-level-semantics

HTML 5 嵌套规则

Page 6: Banquet 36

获取页面性能数据?

Page 7: Banquet 36

• Httpwatch?

• Firebug net panel?

• Fiddler?

• ySlow?

• Pageseed?

• …….

Page 9: Banquet 36
Page 10: Banquet 36
Page 11: Banquet 36

• W3c

– window.performance

• IE 9 preview

– window.msPerformance

• Chrome 6 +

– window.webkitPerformance

• Firefox,safari

– ?

Page 12: Banquet 36

YUI 3.2.0 preview release

Page 14: Banquet 36

A Little PIE with that CSS3?

http://css3pie.com/

Page 15: Banquet 36

CSS behavior Html Components (HTC)

http://en.wikipedia.org/wiki/HTML_Components

Page 16: Banquet 36

Do LESS with Less.js

http://lesscss.org/index.html

Page 17: Banquet 36

@brand-color: #3879BD;

.rounded(@radius: 3px) { -webkit-border-radius: @radius; -moz-border-radius: @radius; border-radius: @radius; }

#header { .rounded(5px); a { color: @brand-color; &:hover { color: #000; } } }

Page 18: Banquet 36

LESS.js +

node.js =

way fast server-side dynamic css ?

Page 20: Banquet 36

• Manual

• Unit Tests Only

• Low fidelity

• Difficult to write

• Expensive

Problems :

Page 21: Banquet 36

Ex:

Syn.click( {},'hello' )

.type( 'Hello World' )

.delay() //waits 600ms seconds by default

.drag( $('#trash') ,

function() {

ok( $('#hello').length == 0,

"removed hello" )

}

);

Page 22: Banquet 36

3Q~