噗浪最近有點胖

22
Irvin Chen F2E 最近有點胖

Upload: irvin-chen

Post on 07-May-2015

974 views

Category:

Technology


2 download

DESCRIPTION

Lighting talk at JSDC.tw 2013, Identity the memory leak of Plurk on Chrome.

TRANSCRIPT

Page 1: 噗浪最近有點胖

Irvin ChenF2E

最近有點胖

Page 2: 噗浪最近有點胖
Page 3: 噗浪最近有點胖

> console.log(JavaScript.skills)x ReferenceError: JavaScript is not defined

Page 4: 噗浪最近有點胖
Page 5: 噗浪最近有點胖
Page 6: 噗浪最近有點胖
Page 7: 噗浪最近有點胖
Page 8: 噗浪最近有點胖
Page 9: 噗浪最近有點胖
Page 10: 噗浪最近有點胖
Page 11: 噗浪最近有點胖
Page 12: 噗浪最近有點胖

timeline iframe #comet

Page 13: 噗浪最近有點胖

timeline iframe #comet

ref?

Page 14: 噗浪最近有點胖

timeline iframe #comet

reload

resetCometIFrame: function() { var $cFrame = jQuery('#cometframe'); $cFrame.remove(); $cFrame = null; var $newFrame = jQuery('<iframe>').attr({ id: "cometframe", src: $cFrame.attr('src') }).appendTo('body');}

Page 15: 噗浪最近有點胖

resetCometIFrame: function() { var $cFrame = jQuery('#cometframe'); $cFrame.remove(); $cFrame = null; var $newFrame = jQuery('<iframe>').attr({ id: "cometframe", src: $cFrame.attr('src') }).appendTo('body');}

Page 16: 噗浪最近有點胖
Page 17: 噗浪最近有點胖
Page 18: 噗浪最近有點胖
Page 19: 噗浪最近有點胖
Page 20: 噗浪最近有點胖

160MB

18.5MB

Page 21: 噗浪最近有點胖
Page 22: 噗浪最近有點胖

Irvin Chen | irvin @ moztw . org

slideshare.net / irvinfly