ããã«ã¡ã¯ï¼éçºå®¤ã¡ãã£ã¢ã¦ãããæå±æ°å1å¹´ç®ã®å°æ¾¤ã§ãã ã¦ã£ã«ã²ã¼ãã§ã¯ç¾å¨ï¼2018å¹´9æ1æ¥ï¼4ã¤ã®ã¡ãã£ã¢ãåºç社ã¨åæ¥ã§éå¶ãã¦ããããã®ãã¡ã®3ã¤ãèªç¤¾ã§éçºãéç¨ã»ä¿å®ãã¦ãã¾ãã æ®ãããã¹ã¿ï½ç¥ãããï¼æãããï¼æ®ããã®ã¢ã¤ãã¢ããã£ã±ãï¼ Milly ããªã¼ï½å¦å¨ ã»åºç£ã»åè²ã¦ã®âä»ç¥ãããâãããã解決 è±æé | è±ãã°ãªã¼ã³ããå§ã¾ããã¿ãã«ã«ã©ã¤ãã®ææ¡ PVæ°ãåéçãä¸ããããã«ã¯è¯è³ªãªã³ã³ãã³ããæä¾ããã®ã¯ãã¡ããã§ããããã®ä»ã«ã§ããåãçµã¿ã¨ãã¦ãUIã»UXã®æ¹åã表示é度ã®ãã¥ã¼ãã³ã°ãªã©ãããã¾ãã ä»åã¯ããã¼ã¸ã®è¡¨ç¤ºé度ãæ¹åããä¸æ©ç®ã¨ãã¦ãwebãã©ã¦ã¶ãGoogle Chromeãã«æ¨æºã§æè¼ããã¦ãã ãChrome DevToolsããå©ç¨ãã¦ç°¡åã«ãµã¤ãã¹ãã¼ããè¨æ¸¬ããæ¹æ³ãç´¹ä»ãã¾ãã Chrome DevTools(æ§ï¼
æ§ã ãªãµã¤ãã§å®è£ ããã¦ãããã¼ãã£ã³ã°ç»é¢ãå®è£ ãããã¨æã£ããã¨ã¯ããã¾ãããï¼ ãã®è¨äºã§ã¯JavaScriptã使ç¨ãã¦ãã¼ãã£ã³ã°ç»é¢ãå®è£ ããæ¹æ³ããç´¹ä»ãã¾ãã ãã¼ãã£ã³ã°ç»é¢ãå®è£ ããã¡ãªãã ãã¼ã¸ãèªã¿è¾¼ãã ã¨ãã®è¡¨ç¤ºã®å´©ãããªããªã ã¡ããã¨ãã¼ã¸ãèªã¿è¾¼ãã§ãããã¨ãä¼ãã ã¢ãã¡ã¼ã·ã§ã³ãå ãããã¨ã§é£½ããããé¢è±çãä¸ãã ä¸è¨ã®ãããªã¡ãªãããããã¾ãããããã§ã®ä¸çªã®ã¡ãªããã¯ãã¯ãé¢è±çãä¸ããããã¨ãã¨æãã¾ãã ä¸è¬çã«ã¯ãã¼ã¸èªã¿è¾¼ã¿æéã3ç§ãè¶ ããã¨é¢è±çãé«ããªãã¾ãã ãããããã¼ãã£ã³ã°ç»é¢ãå®è£ ãããã¨ã§ä¸é¨ã§ã¯é¢è±çãä¸ãã£ãã¨ãã調æ»çµæãåºã¦ãã¾ãã ããã§ã¯ãã¼ãã£ã³ã°ç»é¢ãå®è£ ãã¦ããããã¨æãã¾ãã ã¾ãã¯ãã¢ãç¨æãã¾ããã®ã§ã確èªä¸ããã ãã¼ãã£ã³ã°ãã¢ï¼https://hirakublog.com/demo/page
æè¿ã¯ãã£ã¨Vue.jsã使ã£ã¦UIãéçºãã¦ãããã©ããã¼ã¸ãè¤éã«ãªãã«ã¤ããã©ããã¦ã親åé以å¤ã®å å¼ã¨ããæ·±ããªã£ãã³ã³ãã¼ãã³ãããã¨ããã°ãã¼ãã«ãªã¤ãã³ãã®ããåããå¿ è¦ã«ãªã£ã¦ããã çºä¿¡å´ã¯this.$emit(âfoobarâ, data)ã¨ãåä¿¡ããã³ã³ãã¼ãã³ãã§v-on:foobar="bazzMethod"ãæ¸ãã¦ç¹ãã¦ããã®ãä¸å¯è½ã§ã¯ãªããã©ãã¡ã³ããã³ã¹ãèããã¨ä¸å¯è½ã ãã£ã¨æ¤ç´¢ã§ãã¾ãã£ã¦ããã¨ãããå ¬å¼ããã¥ã¡ã³ãã§v1.xããã®ç§»è¡ã«ãã£ããæã¯$broadcastã¨$dispatchã¨ããã®ããã£ããããã jp.vuejs.org 2ã§ã¯eventHubã¨ããæ¦å¿µã使ãããããVueã®æ©è½ã¨ã¯è¨ããªãæ°ãããã®ã§æ¦å¿µã¨ããã ä¸ã¤ã°ãã¼ãã«ãªVueãªãã¸ã§ã¯ããä½ã£ã¦ãã¿ããªããããemitããããonãããããã ãã å ¬å¼ã®ããã¥ã¡ã³ãã ã¨
â»æ¬è¨äºã¯2019å¹´11æã«å ¬éãããå 容ã§ãã JavaScriptç¨ã®ãã¬ã¼ã ã¯ã¼ã¯ã®ä¸ã§ãé«ãæ¡ç¨çãèªãVue.jsããã®Vue.jsãããããå¦ã³å§ããæ¹ã¯ãå¦ã³æ¹ãæãã¦ã»ãããæèè ã®è©±ãèãããã¨èãããã¨ã¯ããã¾ããããæ¬è¨äºã§ã¯ããVue.jså ¥é åºç¤ããå®è·µã¢ããªã±ã¼ã·ã§ã³éçºã¾ã§ãã®èè ã§ããæ島æä¹æ°ã«Vue.jsãå¦ã¶åã«ç¥ã£ã¦ãããããã¤ã³ããèªã£ã¦ããã ãã¾ããVue.jsã®åå¼·æ¹æ³ãæ島æ°ã®çµé¨ãç¥ããã¨ãã§ããã®ã§ããã²ã覧ãã ããã å¦ã¶åã«ã¾ãã¯ã©ããªæ¡ä»¶ããããç¥ãããæ¹ã¯ãFLEXYã§åãæ±ã£ã¦ããVue.jsæ¡ä»¶ãã覧ãã ããã ç§ã®ã¨ã³ã¸ãã¢å²ã¨Vue.jsã«åºä¼ãã¾ã§ å æ¥ãæ ¶æ義塾大å¦ç¢ä¸è³ï¼èµ·æ¥æ¯æ´ï¼æä¸å¼ã§æå¾ è¬æ¼ãããæ©ä¼ãããã¾ããããã®éã«ãå¼·çã«æããã®ã§ãããVue.jsã¨ç§ã®ã¨ã³ã¸ãã¢å²ãåãé¢ãã¦èªããã¨ã¯ã§ãã¾ããã
å°ãåã®CSS Transitionã使ã£ãã¹ã ã¼ãºã«ã¹ã¯ãã¼ã«ãã¦ãããã«æ»ãæ©è½ã¨ããè¨äºã§ã¯ãCSS Transitionã使ã£ã¦ã¹ã ã¼ãºã«ã¹ã¯ãã¼ã«ãããããã«bodyè¦ç´ ã®margin-topããããã£ã¼ãè² ã®å¤ãè¨å®ãããããã¯ã¨ã«ããä¸æ¹åã¸ã®ã¹ã¯ãã¼ã«ã«ãã使ããã¨ã¯åºæ¥ãªããä¸æ¹åã«ã¹ã ã¼ãºã«ã¹ã¯ãã¼ã«ãããããã«ã¯ã¾ãå¥ã®ã¢ããã¼ããå¿ è¦ã«ãªãããã ã ä½ãããã®CSSããããã£ã¼ã使ããbodyè¦ç´ ãä¸æ¹åã«ãããã¨ãããã¨ã«ãªããã¤ã¾ãtransformããããã£ã¼ã§translate()ãtranslate3d()ã使ãYæ¹åã®ãã¤ãã¹ã¸åããã®ãåãã¦ããããã ããã¨ã¯transitionããããã£ã¼ãçµã¿åãããã ãã§ã¹ã ã¼ãºã«ã¹ã¯ãã¼ã«(ãã¦ããããã«è¦ãã)ãã¨ãã§ããã Demo: Scroll Down Smoothly with CSS Transi
ã²ã¼ã é³æ¥½ã®æ¼å¥ä¼ãã³ã³ãµã¼ãæ å ±ã®ãã¼ã¿ã«ãµã¤ã[2083WEB] ã²ã¼ã é³æ¥½ï¼ã¢ãã¡ãæ ç»ããã©ããªã©ã®å®ç¨é³æ¥½ãå«ãï¼ãæ¼å¥ãã ãªã¼ã±ã¹ãã©ãå¹å¥æ¥½å£ãªã©ã®æ å ±ãã覧ã«ãªãã¾ãã 2083WEBãã覧ããã ããããã¨ããããã¾ãã2083代表ã®æè¤ã§ãã ãªã¼ãã³ããä¸ã¶æåçµã£ã¦ãã¾ãã¾ããããããããç¹éã³ã³ãã³ããå§ã¾ãã¾ãï¼ ç¬¬ä¸å¼¾ã¯ããã²ã¼ã é³æ¥½ã®æ¥½èãã§ããã¾ã§ãã¨ãããã¼ãã§ã ã²ã¼ã é³æ¥½ã®æ¥½èãåºçããã¦ãããã¹ã«ã¤ãã¼ãåºçãã®ç§¦ãã¾ã«ã話ã伺ã£ã¦ãã¾ããã åæã®æ¨¡æ§ã¯ãåè¡ããã©ã¤ã¿ã¼ã«æ¸ãèµ·ããã¦ããã ãã¾ããã ããã§ã¯ãã©ããã覧ãã ããï¼ âãã®ï¼ï¼ãã£ã±ãããã¯ã®èä½æ¨© 秦é彦ï¼ã¯ããããã²ãï¼ããã®ãããã£ã¼ã« å½ç«é³æ¥½å¤§å¦ä½æ²å¦ç§åæ¥å¾ã 大æ楽èåºç社ã®ç·¨æ²ãã¬ã³ã¼ãä¼ç¤¾ã®è²©ä¿æ¥ãçµã¦ã 2004å¹´ã«ã¹ã«ã¤ãã¼ãåºçãè¨ç«ã ç·¨éã¨å¶ä½ã«æºãã
WordPressãµã¤ããé«éåããæãç°¡åãªæ¹æ³ã¯ããã°ãä¸è¦ãªãªã½ã¼ã¹ããã¹ã¦åé¤ãããã¨ãããã¦ãå¿ è¦ãªãªã½ã¼ã¹ã¯å§ç¸®ãããã¨ã§ããã¦ã§ããµã¼ãã¼ã§GZIPå§ç¸®ãæå¹ã«ããã°ããããå¹ççã«å®è¡ã§ãã¾ãã æè¿ã®ãã©ã¦ã¶ã¯ãããã©ã«ãã§GZIPå§ç¸®ããµãã¼ããã¦ãã¾ãããå§ç¸®ãããªã½ã¼ã¹ãæä¾ããã«ã¯ãé©åãªãµã¼ãã¼ã§ã®è¨å®ãå¿ è¦ã«ãªãã¾ãã ããã§ä»åã¯ãã¦ã§ãã«ããããã¼ã¿å§ç¸®ã®åºæ¬ãGZIPå§ç¸®ã®æ¦è¦ã¨ã¡ãªãããããã¦ãã¾ãã¾ãªãµã¼ãã¼æ§æã§GZIPå§ç¸®ã使ç¨ããWordPressãµã¤ããé«éåããæ¹æ³ã詳ãããç´¹ä»ãã¦ããã¾ãã GZIPå§ç¸®ãæå¹ã«ããæ¹æ³ã«ã¤ãã¦åç»ã§ã®è§£èª¬ããç¨æãã¦ãã¾ãã ã¦ã§ãã«ããããã¼ã¿å§ç¸®ã®åºæ¬ ãã¼ã¿å§ç¸®ã¨ã¯ãã¦ã§ããµã¤ãããéä¿¡ããããã¼ã¿ã®ãµã¤ãºã縮å°ãããã¨ãæå³ãã¾ãããã¼ã¿ã®ç¨®é¡ï¼ããã¹ããç»åãã¹ã¿ã¤ã«ã·ã¼ããã¹ã¯ãªããããã©ã³
ãµã¼ãã¼åæå¿çæéï¼TTFBï¼ãæ¸ããããµã¤ãèªã¿è¾¼ã¿æéãæ¹åããæ¹æ³ ãµã¤ãã®èªã¿è¾¼ã¿é度ãä¸ããã¨ãªãã¨ãæ®éã¯ãããã³ãã¨ã³ãã®ããã©ã¼ãã³ã¹æ¹åãæé©åã«çæãããã®ã ããããã¦ã§ããµã¤ãèªã¿è¾¼ã¿ã®å§ç¹ã§ãããµã¼ãã¼ããå¿ãç¡ãã ä»åã¯ããµã¼ãã¼åæå¿çæéï¼TTFBï¼ã®å½±é¿ã¨ããããæ¸ããæ¹æ³ã«ã¤ãã¦ã説æãã¾ããTTFBã¯è¦éããããã¡ãªããã©ã¼ãã³ã¹ææ¨ãã ããããããµã¤ãã®ã¹ãã¼ããã¹ãã®éã«ã¯æèãã¦ç®ãåãã¾ãããã TTFBã¨ã¯ TTFBã¯éè¦ãªã®ã TTFBã®æ¸¬å®æ¹æ³ ãµã¤ãã®TTFBãä½æ¸ãã4ã¤ã®æ¹æ³ TTFBã¨ã¯ TTFBã¨ã¯ãæåã®1ãã¤ããåä¿¡ããã¾ã§ã®æéãï¼Time To First Byteï¼ãæå³ãã¾ããTTFBã¯ãã©ã¦ã¶ããµã¼ãã¼ããã®ãã¼ã¿ã®æåã®1ãã¤ããåãåãã¾ã§ã«ãããæéã®ãã¨ã§ãããã®ãã¼ã¿ãåãåãã¾ã§ã«æéããããã»ã©ã
Google Chromeã«ã¯ãããããããã¼ãã¼ã«ãï¼ä»¥ä¸ãDevToolsï¼ã¨ããæ©è½ãããã¾ãã 主ã«webãµã¤ãã®éçºæã«å©ç¨ããã¨ä¾¿å©ãªæ©è½ã§ãããèªç¤¾ãµã¤ããèªåã®æ°ã«ãªããµã¤ãã調æ»ããã¨ãã«å½¹ç«ã¡ã¾ãã ãã¾ãã¾ãªæ©è½ãæã¤DevToolsã§ãããä»åã¯ãNetworkãããã«ã使ã£ã¦ããµã¤ãã表示ãããã¾ã§ã®éä¿¡ç¶æ ãã¨ã³ã¸ãã¢ç®ç·ã§èª¿æ»ãã¦ããã¾ãã ãªã¯ã¨ã¹ãå ¨ä½ã俯ç°ãã ä»åã¯ãå¼ç¤¾ã®ãµã¤ããhttps://www.asobou.co.jp/ãã対象ã«èª¿æ»ãã¦ã¿ããã¨æãã¾ãã Google Chrome ã®DevToolsãéãã¦ï¼windowsã®å ´åã¯ãF12ããã¼ï¼ãä¸è¨ã®URLã«ã¢ã¯ã»ã¹ããNetworkãããã«ãéãã¾ãã ããã«ã®ä¸é¨ã«ã¯ããã©ã¦ã¶ã¨ãµã¼ãã¼ã®éä¿¡ã俯ç°ããã°ã©ãã表示ããã¾ãã ããã«ã®ä¸é¨ã«ã¯ããªã¯ã¨ã¹ãã®è©³ç´°ãªã¹ãã表示ããã¾ãã
ã¤ã¼ã¸ã³ã°ãªãã¨ãã ç»åã§ã¯ã¤ã¼ã¸ã³ã°ãããããããããã«ã°ã©ããå ¥ãã¦ããã¾ãã 横ãæéã縦ãã¹ã±ã¼ã«ãç¹ããã¼ãæããã¦ãããã¨ã表ãã¦ãã¾ãã UIãã¨ã®ã¤ã¼ã¸ã³ã° UIç´ æãã¨ã«ã©ã®ãããªç·©æ¥ã®ä»ãæ¹ãè¯ãã®ãè¿·ããã¨æãã¾ãã ãã¤ã¢ãã°ã¢ãã¡ã¼ã·ã§ã³ä»¥å¤ã«ãç»é¢é·ç§»æã®UIã®åããã¯ã¨ã¹ãéå§æ¼åºãªã©æ§ã ãªã¢ãã¡ã¼ã·ã§ã³ãå ¥ãããã³ã«ã©ã®ã¤ã¼ã¸ã³ã°ãæ£è§£ãªã®ããããã«ã¤ãã¦ã¯æ£è§£ã¯ããã¾ããã ã²ã¼ã ã®è²å³ããã¶ã¤ã³ãä¸ç観ãç¥ããã«ã¢ãã¡ã¼ã·ã§ã³ã¯ä»ãããã¾ããã ã¾ããUIãã©ãã¾ã§ä¸ç観ãè¸è¥²ããã®ãã§ãã·ã¹ãã ã®ãããªåãã«ããã®ããä¸ç観ã«åãããåãã«ããã®ããå¤ãã£ã¦ãã¾ãã ãããã£ãé¨åã¯é¢ä¿é¨ç½²ã«ã³ãã¥ãã±ã¼ã·ã§ã³ãã¨ã£ã¦ã©ããªã²ã¼ã ãä½ãããã®ããææ¡ããã¤ã¼ã¸ã³ã°ã¯ã©ãããã®ããèãã¦ããã¾ãã ããã¦ãäºååä½ããªã¼ãã¼ã·ã¥ã¼ããå¿ è¦ãªã®ãä¸è¦ãªã®
ããã«ã¡ã¯ããããã¤ã³ã¿ã¼ããã ã¯ã©ã¦ããã¼ã ã®å¤§åå¤ã§ãã ããããã®ã¯ã©ã¦ãã§ã©ããããã¨ãåºæ¥ãã®ããç¥ããããã¨ãããè¦æã«ãå¿ãããããããã®ã¯ã©ã¦ãå ¥éãã¨é¡ãã¾ã㦠ãããã®ã¯ã©ã¦ãã®åºæ¬çãªä½¿ãæ¹ãã説æãã¦ããããã¨æãã¾ãã第4åã®ä»åã¯ããã¼ããã©ã³ãµã®ä»çµã¿ãã«ã¤ãã¦ã説æãã¾ãã ãã¼ããã©ã³ãµã®å½¹å² ãã¼ããã©ã³ãµã¯ãã·ã¹ãã ã«å¯¾ãããªã¯ã¨ã¹ããè¤æ°ã®ãµã¼ãã«åæ£ãããå¦çã®ãã©ã³ã¹ã調æ´ããããã®ä»çµã¿ã§ãããã¼ããã©ã³ãµãå°å ¥ãããããã¨ã«ããã以ä¸ã®è¦ä»¶ãå®ç¾ãããã¨ãã§ããããã«ãªãã¾ãã ã¹ã±ã¼ã©ããªãã£(æ¡å¼µæ§) ãã¼ããã©ã³ã¹å¯¾è±¡ã®ãµã¼ãå°æ°ãå¢ãããã¨ã«ãã£ã¦ãã·ã¹ãã ã®ã®è½åãä¸è¶³ãã¦ããã¨ãã«å®¹æã«æ¡å¼µã§ããããã«ãªãã¾ãã ã¢ãã¤ã©ããªãã£(å¯ç¨æ§) ãã¼ããã©ã³ãµã¯ãã¼ããã©ã³ã¹å¯¾è±¡ã®ãµã¼ãã«å¯¾ãã¦ãã«ã¹ãã§ãã¯(æ»æ´»ç£è¦)ãè¡ã£ã¦ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}