GAÖÐÍøÕ¾ËٶȵĶÈÁ¿Óë·ÖÎö
ºÜ¶àÎÄÕ¶¼»á˵µ½ÍøÕ¾ËٶȶÔÓÚÓû§×ª»¯µÄÓ°Ï죬ËÙ¶ÈÂýµÄÍøÕ¾Óû§¸üÈÝÒ×À뿪£¬ÓÈÆäÊÇ¿ÉÒÔÕÒµ½Ìæ´úÄÚÈݵÄÇé¿öÏ¡£
ÄÇôÈçºÎ¶ÈÁ¿ÍøÕ¾µÄ¼ÓÔØËÙ¶ÈÄØ£¬Ö®Ç°´ó¼ÒµÄ×ö·¨ÊÇÔÚÒ³ÃæµÄÍ·²¿¼ÇÒ»ÏÂʱ¼ä£ºvar start = new Date().getTime()£¬È»ºóÔÚÒ³½Å¼ÆËãÒ»ÏÂÓõôµÄʱ¼ä£ºvar timeUse = new Date().getTime() – start£¬°ÑÕâ¶ùµÄtimeUseÓÃʼþµÄ·½Ê½Ìá½»µ½GA·þÎñÆ÷£º_gaq.push(['_trackEvent', 'timeUse', '/home.html', 'load', timeUse])£¬×îºóÔÚGAµÄʼþÁÐ±í£¬¿´Ê¼þµÄƽ¾ùÖµÀ´ÆÀ¼ÛÒ³ÃæµÄ¼ÓÔØʱ¼ä¡£
ÕâÑù×ö£¬¿ÉÒÔ»ñµÃ¼ÓÔØʱ¼ä£¬µ«²»ÍêÕû£¬ÍêÕûµÄÒ³Ãæ¼ÓÔØÊÇÕâÑùµÄ£º
1¡¢Óû§´ò¿ªurlÁ´½Ó
2¡¢ä¯ÀÀÆ÷²éѯurlµÄdnsµØÖ·
3¡¢Ìá½»urlÇëÇóµ½·þÎñÆ÷¶Ë
4¡¢·þÎñÆ÷¶Ë´¦Àí
5¡¢´«Êä´¦ÀíºÃµÄhtmlÎı¾ÄÚÈݵ½ä¯ÀÀÆ÷
6¡¢ä¯ÀÀÆ÷½âÎöhtml£¬²¢¼ÓÔØcss£¬js£¬Í¼Æ¬µÈÄÚÈÝ
7¡¢¼ÓÔØÍê³É£¬Óû§¿´µ½ÍêÕûµÄÒ³ÃæÄÚÈÝ
Ç°ÃæµÄtimeUse»ñÈ¡µÄÆäʵÊǵÚ6²½²Ù×÷µÄÓÃʱ£¬2µ½5²½µÄÓÃʱ¶¼ÎÞ·¨»ñÈ¡£¬¼ÙÉèij¸öÍøÕ¾µÄdns²éѯÂý£¬·þÎñÆ÷¶Ë´¦ÀíÂý£¬»¹ÊÇ»áÓ°ÏìÓû§µÄÌåÑ飬¶øÕâ¸öÊÇÎÒÃÇÎÞ·¨¶ÈÁ¿µÄ¡£
Æäʵdns²éѯ£¬µÈ´ý·þÎñÆ÷´¦ÀíµÈʱ¼ä£¬×÷Ϊä¯ÀÀÆ÷ÊÇÖªµÀµÄ£¬ÓÚÊÇHTML5¹æ·¶ÎªÕⲿ·ÖµÄ²éѯ£¬ÌṩÁ˽ӿڣ¬ÔÊÐíjavascriptÀ´²éѯÏêϸµÄÓÃʱ£¬¾ßÌåÎĵµÔÚÕâ¶ù£ºhttps://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html#sec-navigation-timing-interface£¬µ÷ÓõÄÀý×Ó¼ûÕâ¶ù£ºhttp://www.html5rocks.com/en/tutorials/webperformance/basics/£¬¼ÙÉèÎÒÃÇÒª»ñÈ¡µ±Ç°Ò³ÃæµÄdns½âÎöʱ¼ä£¬Ö»Òª£ºperformance.timing.domainLookupEnd – performance.timing.domainLookupStart¼´¿É£¬Ä¿Ç°Ö§³Ö¸Ã½Ó¿ÚµÄä¯ÀÀÆ÷ÓУºfirefox£¬chrome£¬IE9µÈ¶Ôhtml5±ê×¼Ö§³Ö½ÏºÃµÄä¯ÀÀÆ÷¡£ÎÒʵ¼Ê¿´ÁËÒ»ÏÂÎÒÃÇÕ¾µãµÄͳ¼Æ£¬firefox/chrome/IE9ä¯ÀÀÆ÷¹²Õ¼ 38% ÕâÑù£¬²»Í¬ÀàÐÍÍøÕ¾ÒòΪÓû§Èº²»Í¬£¬Õâ¸ö±ÈÀý»áÓвî±ð¡£ËÙ¶ÈÖµ¿ÉÒÔ×÷Ϊ²Î¿¼£¬Èç¹ûChrome¼ÓÔØÒ»¸öÒ³ÃæÌرðÂý£¬¿ÉÒÔÈÏΪIE6Ò²¿ì²»µ½ÄÇÀïÈ¥£¬¾Í¸Ã×ÅÊÖÓÅ»¯ÁË¡£
ÍƼöÐÅÏ¢
- ¹¹½¨¸ß¿ÉÓú͵¯ÐÔÉìËõµÄKV´æ´¢ÏµÍ³
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨¶þ£©
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨Ò»£©
- Ðì¹úÏ飺΢²©ÊÇ·ñ»á²ÎÓëÍøÕ¾ÅÅÃû
- ApacheÔÚ±¾µØ½¨Á¢·ºÓòÃûÐéÄâÖ÷»ú¼ò·¨
- ÈçºÎ½øÐÐÍøÕ¾Õï¶Ï ΪÍøÕ¾½øÐÐÆÀ·Ö
- Ò»¸ö³É¹¦µÄÕ¾³¤Ó¦¸Ã¾ß±¸µÄËØÖÊ
- Ò»Ìõ΢²©Òý·¢µÄ·ÖÎö£ºÈçºÎÈÃ΢²©µÃµ½¹ã·º´«²¥
- ÈçºÎÈÃÒ»¸öÍøÕ¾ÓÐÇ¿´óÉúÃüÁ¦
- פ×ãIDCÃż÷³Ö±Ò¹ÛÍû Õ¾³¤Ñ¡¹º¿Õ¼ä³É¡°¼èÄѵľö¶¨¡±£¿
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
ÆÀÂÛ