The Performance of Dynamic Site (id:amachang)
æ¦è¦
- JavaScriptã®èª¤è§£
- éããã¦ããç¯äºº
- ãããã¡ã¤ã©
JavaScriptã®èª¤è§£
- JavaScriptã¯é
ã
- éãã§ã
éããã¦ããç¯äºº
- DOM
- DOMããã§ã¼ãºã«åãã¦èãã
- JavaScriptã¨ã³ã³ãã¼ãã³ã(C++)ã¨ã®éä¿¡(åå¾)
- DOMãã¼ãã®è¿½å ãå¤ã®å¤æ´
- ã¹ã¿ã¤ã«ã®è¨ç®
- ã¬ã¤ã¢ã¦ãã®è¨ç®
- JavaScriptã¨ã³ã³ãã¼ãã³ã(C++)ã¨ã®éä¿¡(åå¾)
XPConnectãCOMã¨ã®éä¿¡
åç´ãªããããã£ã¢ã¯ã»ã¹ã®æ°åå(IE以å¤ã¯ç¡è¦ãã¦ãk)
COMã¯éã
éä¿¡åæ°ï¼DOMã®ãªãã¸ã§ã¯ãã®ã.ãã®æ°
- DOMãã¼ãã®è¿½å ãå¤ã®å¤æ´
åå¾ã®å ´åã¨åãã.ãã®æ°
ãã¼ãã«å¤æ´ããã¨ãããã©ã°ãç«ã¤
parent.appendChild(child)ã ã¨parentã¨childã«ãã©ã°ãç«ã¤ã
éè¦ï¼åè¨ç®ãJavaScriptã®å®è¡å¾ã«è¡ãããäºããã
âJavaScriptå
ã§ã®ãã³ãããããã¡ã¤ãªã³ã°ãå½¹ã«ç«ããªã
- ã¹ã¿ã¤ã«ã®è¨ç®
ä¸çªæé©åãå¹ãæ
-
- å¤æ´ãã©ã°ãçµã£ã¦ãããã¼ããããã¾ã¾JavaScriptãçµäºãã
- å¤æ´ãã©ã°ãçµã£ã¦ããç¶æ
ã§ã¹ã¿ã¤ã«ã®åè¨ç®ãå¿
è¦ãªæä½ãè¡ããã
- offsetWidthã®åå¾ã¨ã
ãå¤æ´âåè¨ç®ãå¿ è¦ãªæä½(åå¾)âå¤æ´ãã¨ããã®ãç
åè¨ç®ãè¡ããã代表çæä½
åè¨ç®ãè¡ãããç¯å²
classãè¨å®ããå ´å
èªèº«ã»åå«ã»å¼ã»å¼ã®åå«
styleããããã£ã®ç´æ¥æ¸ãæã
èªèº«ã»ç¶æ¿ããã¦ããè¦ç´
styleããããã£ã®æ¸ãæãã®æ¹ãclassã®æ¸ãæãããéããã§ãæ±ãã
Webkitãèªåã§ãã«ããã¦debugåºåããã°åè¨ç®ã®èµ·ãã£ãã¿ã¤ãã³ã°ã調ã¹ããã¾ããã
- ã¬ã¤ã¢ã¦ãã®è¨ç®
æ¿ããéã
å
ç¥è¦ç´ ãèããªãã¨ãããªããã
ãããã¡ã¤ã©
ä½ãéãã¨ãããä½åº¦ãä½åº¦ãå¼ã°ãã¦CPUæéãé£ã£ã¦ãæããã¥ã¼ãã³ã°
JUIã§ããã£ã話(測ãããé¨åãé©å½ãªååãä»ããé¢æ°ã®ãã®å ´å®ç¾©&å¼ã³åºã)
ãã éé²ã«ãã¥ã¼ãã³ã°ããã®ã¯è¾ããã
ãå©ç¨ã¯è¨ç»çã«
Q&A
- åºæ¬çã«ãã©ã°ãçµã£ã¦ãç¯å²ã¨åå¾ãããç¯å²ãéãªã£ã¦ããæã®ã¿ã ããoffsetWidth Hieghtã¯ã¬ã¤ã¢ã¦ãã®åè¨ç®ãè¡ããã
- çè«ä¸CSSãã¥ã¼ãã³ã°ãå¯è½ã¿ãããªè©±ã
- Webkitéã(ã³ã³ãã¼ãã³ãã®éä¿¡ã¨ãã¬ã¤ã¢ã¦ãè¨ç®ã¨ã)
- åå¼·ã®åªå é ä½ï¼1:ã½ã¼ã¹èªãã2:è¨æ¸¬ããã3:ããã¥ã¡ã³ãèªã
- Webkitã®IDLãèªãã ãã§ãåå¼·ã«ãªãã