Bundle Side Optimization in Future JavaScript - JSConf JP 2021
Bundle Side Optimization in Future JavaScript - JSConf JP 2021
ã¯ããã« ã¾ãâã®è¨äºãè¦ã¦ãªãæ¹ã¯ãã²è¦ã¦ãã ããï¼ èªåã«ã¨ã£ã¦ã¯ãã®è¨äºã«ã¯ããã£ãããã³ã¬ï¼ããªãã¯ããã¯ãå¤ããç¹ã«è§£èª¬ããªãã£ãã®ã§ãããã調ã¹ã¦ããä¼æ¥ãæ¶ãã¦ã¾ãã... ãªã®ã§ãã®æéã®ä¾é¤ãããã¦ãèªåãç¥ããªãã£ãé¨åãä¸å¿ã«ãåè¶ãªããå è¨äºã®è§£èª¬ãæ¸ãã¦ã¿ããã¨æãã¾ãã ã¡ãªã¿ã«ã以ä¸ãå è¨äºã®ã³ã¼ããã®ã¾ã¾ãå®è£ ãããã®ã§ãããããã«æ²è¼ã³ã¼ãã ãã§è¦ç´ ãã°ãªã°ãªåãã¾ããã See the Pen js-drag-move-original by www-tacos (@www-tacos) on CodePen. åè³1: $img ã¾ãã³ã¼ãã®ãã <img id="$img" src="https://js.cx/clipart/ball.svg" width="40" height="40"> <script> $img.onpointermove
ã¯ãã㫠以å uhyo ããã«ãããHTML ã¯ããã°ã©ãã³ã°è¨èªã§ãããã¨ç¤ºããããã¨ã¯è¨æ¶ã«æ°ããã¨ããã§ãããæ¨å¹´æ«ã® HTML, The Programming Language ã®ç»å ´ã«ããããã®ä¸»å¼µã¯ããå¼·åºãªãã®ã¨ãªãã¾ãããç¾ä»£ã§ã¯ãã¯ããHTML ã¯ç«æ´¾ãªããã°ã©ãã³ã°è¨èªã§ããã¨ãããã¨ã¯çããããããã¾ããã ãã®è¨äºã§ã¯ãããã°ã©ãã³ã°è¨èª HTML, The Programming Language ã«ã¤ãã¦ããã®æ¦è¦ã¨åºæ¬çãªææ³ã«ã¤ãã¦èª¬æãã¾ããããã¦æå¾ã«ãHTML ããã°ã©ãã³ã°ã®å¿ç¨ä¾ã¨ã㦠FizzBuzz ããã£ããããæ°åã®å®è£ ä¾ãè¦ã¦ããã¾ãã HTML, The Programming Language HTML, The Programming Language (ä»¥ä¸ HTML ã¨ç¥ãã¾ã) ã¯ãHTMX ãéçºãã¦ãããã¨ã§æå㪠B
HTMXã¨ã¯ https://htmx.org/ HTMXã¯ãJavaScript ãè¨è¿°ããã«ãAjaxéä¿¡ãé«åº¦ãªUXãå®ç¾ã§ããã©ã¤ãã©ãªã 軽é 㧠é«é ã§ãæ¢åã®ãµã¼ãã¼ãµã¤ãã®ãã¬ã¼ã ã¯ã¼ã¯ã¨ã·ã¼ã ã¬ã¹ãªããåããã§ãããã¾ããAJAXéä¿¡ã®çºç«ããã©ã¼ã ã®éä¿¡å¦çãDOMã®æ´æ°ãªã©ãæ¢åã®HTMLè¦ç´ ãæ¡å¼µããã ãã§å¯è½ã¨ãããWebSocketãSSEã«ã対å¿ãã¦ããã®ã§ããã£ããã¢ããªãªã©ã«ãé©ãã¦ããã 2023 JavaScript Rising Starsã§ã¯ã ããã³ãã¨ã³ãã»ãã¬ã¼ã ã¯ã¼ã¯é¨éã§è¦äº2ä½ã«è¼ããï¼(ä¸ä½ã¯Reactãå ¨é¨éã ã¨shadcn/ui)ãä¼¼ããããªæ©è½ã¨ãã¦ãRuby on Railsã®HotWireããããããã 2024å¹´ã¯HTMXãããã¨è¨ããã¦ãããããä¸çã§é¨ããã¦ããã®ã ãããã¾ãæ¥æ¬ã§ã¯æµè¡ã£ã¦ããªãã以ä¸ã¯Google
ã¯ããã« Webããã³ãã¨ã³ãéçºã®å¦ç¿ã«ããã¦ãå¤ãã®äººãã¾ãæåã«console.logã®ä½¿ãæ¹ãå¦ã³ã¾ãã console.logã¯ãããã°ã®éã«é常ã«ä¾¿å©ãªãã¼ã«ã§ãããJavaScriptã«ã¯ãã以å¤ã«ãå¤å½©ãªãããã°æ©è½ãåå¨ãã¾ãã é常ã®console.logã ãã§ãªãããã¾ãã¾ãªconsoleã®ã¡ã½ãããæ´»ç¨ãããã¨ã§ããããã°ä½æ¥ãããå¹ççã«ããã¤è¿ éã«é²ãããã¨ãã§ãã¾ãã console.log ãã©ã¦ã¶ã®éçºè ãã¼ã«ãNode.jsã®ã³ã³ã½ã¼ã«ä¸ã«ã渡ãããå¼æ°ã表示ãã¾ã
Today weâre excited to announce the release of TypeScript 5.0! This release brings many new features, while aiming to make TypeScript smaller, simpler, and faster. Weâve implemented the new decorators standard, added functionality to better support ESM projects in Node and bundlers, provided new ways for library authors to control generic inference, expanded our JSDoc functionality, simplified con
Intro Fetch API ã®å®è£ ãåºã¾ãã IE ããªã¿ã¤ã¢ãè¿ãããã¨ã§ãä»å¾å¿ãå»ããã¦ãããã¨ã«ãªãã ãã XMLHttpRequest ã«ã¤ãã¦ã ã©ã®ããã«å§ã¾ããã©ã®ããã«åºã¾ããã©ã®ããã«ä½¿ãããªããªã£ã¦ããã®ãããã®éã«æ®ããå¤å¤§ãªå績ãæ®ãã XMLHttpRequest ã®å§ã¾ã ãã®ååã¯é常ã«é·ããããé常 XHR ã¨ç¥ãããã ãã® API ã¯ãç¾å¨ã® Web API ã®ããã« W3C/WHATWG ã«ããæ¨æºåãçµã¦çå®ããã API ã§ã¯ãªãã Microsoft ã«ããããããç¬èªå®è£ ã® API ã¨ãã¦å§ã¾ããå¾è¿½ãã§æ¨æºåãããã ãããã£ã¦ã Web API ã®ä¸ã§ãããªãç°è³ªãªå½åã§ãã XHR ãã XmlHttpRequest ã§ã XMLHTTPRequest ã§ããªã XMLHttpRequest ã§ããçç±ãã Microsoft ã®å½
ã¯ãããï¼ã¡ã ããã¼ã¿ã¬ãªã¼ã¹ãã£ã³ããã³ã¼ãï¼ ä»åã®è¨äºã¯çè ã«çãããæè¡ç´¹ä»ã§ã¯ãªããåã®å人çãªæè¦ãæ¸ãã¾ããããã¾ã§ããèªèª¬ã§ãã Reactèªä½ã¯ç»æçã§ãããã°ã©ãã³ã°çã«è²¢ç®ããããã¸ã§ã¯ãã ã¨æã£ã¦ãã¾ãããå®å ¨ã«å¦å®ãããããã§ã¯ããã¾ããã Reactã«å¯¾ããéåæï¼è½çãã¦ã¯å¤§ããè²ã£ã種 çè ã¯Reactãã¨ã¦ã好ãã§ãããJavaScriptã好ãã«ãªã£ããã£ãããReactã§ãããä½ããä½ã¾ã§ãReactã§æ¸ãç´ãã¦ãCustom Hooksãä½ã£ã¦ãrefãåé¨åã«æ¸¡ããããããªããªæºå«ãã¦ãã¾ããã Vueãä»äºã®é¢ä¿ã§ç¿å¾ããããå¾ãªããªã£ãã®ã§ãããVueã¯æé«ã«å¤§å«ãã§ããããããªãReactã§æ¸ãç´ãã¦ããã ï¼ã¨æã£ãããã Reactã«ã¤ãã¦ç¤¾å ã§ãå°å ¥ãæ¨é²ããããReactå ¥éã®åå¼·ä¼ãéãããããã¦ãã¾ãã ãããããããªçè ã¯ãæè¿ã«
jQuery UIã¨jQuery Mobileãã¤ãã«éçºçµäºãä»å¾ã¯ã¡ã³ããã³ã¹ã®ã¿ã«ãjQueryæ¬ä½ã¯å¼ãç¶ãç©æ¥µçã«éçº JavaScriptã®UIãã¬ã¼ã ã¯ã¼ã¯ã§ããjQuery UIã¨ãã¢ãã¤ã«ã¢ããªã±ã¼ã·ã§ã³åããã¬ã¼ã ã¯ã¼ã¯ã§ããjQuery Mobileã¯ä»å¾æ°è¦æ©è½ã®éçºãè¡ããããjQuery UIã«ã¤ãã¦ã¯ã¡ã³ããã³ã¹ã¸ç§»è¡ãjQuery Mobileã«ã¤ãã¦ã¯Deprecatedï¼å©ç¨ãæ¨å¥¨ããï¼ã«ãªããã¨ãOpenJS Foundationããæ£å¼ã«çºè¡¨ããã¾ããã jQuery UIã¯2007å¹´ã«ç»å ´ãjQuery Mobileã¯2011å¹´ã«ç»å ´ãã¾ãããä¸ææã¯Webãµã¤ããªã©ã§åºã使ãããé¢é£æ¸ç±ãªã©ãæ°å¤ãåºçããã主è¦ãªã©ã¤ãã©ãªç¾¤ã®éçºãæ£å¼ã«çµãããã¨ã«ãªãã¾ãã ãã ãjQueryæ¬ä½ã®éçºã¯å¼ãç¶ãç©æ¥µçã«è¡ããã¦ããã¨ã®ãã¨ã§ãã Follo
æ¬é£è¼ã§ã¯ãWebãã©ã¦ã¶ã¼ä¸ã§JavaScriptã¨ã¨ãã«åä½ã§ãããã¤ããªå½¢å¼ã®ããã°ã©ã ãã¡ã¤ã«ãWebAssemblyãããRustããã°ã©ãã³ã°è¨èªã§å®è£ ããæ¹æ³ã«ã¤ãã¦ãé ã追ã£ã¦èª¬æãã¦ããã¾ããååã¨ãªãä»åã¯ãWebAssemblyã®æ¦è¦ã説æããã¨ã¨ãã«ãRustãå©ç¨ããç°¡åãªãµã³ãã«ã§ãå®è£ æ¹æ³ã®ã¤ã¡ã¼ã¸ãç´¹ä»ãã¾ãã ã¯ããã« ç¾å¨ãWebããã³ãã¨ã³ãéçºã«ããã¦ã¯ããã¼ã¸æ§é ã表ãHTMLãã¹ã¿ã¤ã«ã表ãCSSã¨ã¨ãã«ãæåãå®è£ ããããã«JavaScriptãå©ç¨ããã¾ããJavaScriptã®ç»å ´å½åã¯Webãã¼ã¸ã«åããã¤ããç¨åº¦ã®æ±ãã§ãããããã®å¾ã®è¨èªä»æ§ã®æ¡å¼µããWebãã©ã¦ã¶ã¼ã§ã®JavaScriptå®è¡é度ã®åä¸ãNode.jsãªã©Webãã©ã¦ã¶ã¼ä»¥å¤ã§JavaScriptãåä½ãããç°å¢ã®ç»å ´ãªã©ã«ãããæ¬æ ¼çãªããã°ã©ãã³ã°è¨èªã¨ãã¦ãã®
JavaScriptã«ã¯ãç¹å®ã®åä½ãçºçããéã«ããã«å¿ãã¦ã³ã¼ããå®è¡ãããã¤ãã³ããã¨ããä»çµã¿ãåå¨ãã¦ãã¾ãããã®ã¤ãã³ããDOMå ã§ã©ã®ããã«ä¼ããã®ãã«ã¤ãã¦ããExplore DOM Eventsãã¨ããã¦ã§ãã¢ããªãã¤ãã³ãã®ãªãã·ã§ã³ã«å¿ãã¦è¦è¦çã«è¡¨ç¤ºãã¦ãããã¨ã®ãã¨ãªã®ã§ãå®éã«ä½¿ã£ã¦åãããããã確ããã¦ã¿ã¾ããã Explore DOM Events https://domevents.dev/ ãã¼ã¸ã«ã¢ã¯ã»ã¹ããã¨ãã親(PARENT)ããå(CHILD)ããå«(GRANDCHILD)ãã¨ããDOMã®è¦ªåé¢ä¿ã表示ããã¦ããããã®ãã¡1ã¤ãã®å«(ãªã¬ã³ã¸)ãã¤ãã³ãã®ã¿ã¼ã²ããã«è¨å®ããã¦ãããã¨ãåããã¾ãããã®ã¾ã¾ãDispatchããã¯ãªãã¯ãã¦ã¿ãã¨â¦â¦ ã¤ãã³ããä¼ãã£ã¦ããæ§åãã¢ãã¡ã¼ã·ã§ã³ã§è¡¨ç¤ºããã¾ãããã¾ã ä½ãã¤ãã³ããªã¹ãã¼ã追å ãã¦
VS Codeå ã§ãã©ã¦ã¶ç»é¢ãã¬ãã¥ã¼ã¨DevTools表示ããã®ã¾ã¾ã³ã¼ãç·¨éãã§ããVS Codeæ¡å¼µãMicrosoft Edge Tools for VS Codeãæ£å¼çã« ãã¤ã¯ãã½ããã¯ãã³ã¼ãã¨ãã£ã¿ã®Visual Studio Codeï¼ä»¥ä¸VS Codeï¼ã¨Webãã©ã¦ã¶ã®Microsoft Edgeãçµã¿åããã¦ãWebã¢ããªã±ã¼ã·ã§ã³ã®éçºãå¹ççã«è¡ããVS Codeã®æ¡å¼µæ©è½ãMicrosoft Edge Tools for VS Codeãæ£å¼çã®ãªãªã¼ã¹ãçºè¡¨ãã¾ããã Are you a fan of the browser developer tools but not a fan of switching from editor to browser to use them? We heard you! Today we moved the "Mic
Today we are thrilled to announce the availability of TypeScript 4.0! This version of the language represents our next generation of TypeScript releases, as we dive deeper into expressivity, productivity, and scalability. If youâre not familiar with TypeScript, itâs a language that builds on top of JavaScript by adding syntax for static types. The idea is that by writing down the types of your val
TypeScriptå ¨ç¶ããããªã... ã¨ããç¶æ ãããããã¸ã§ã¯ãã«å°å ¥ã§ããã¾ã§ã«ãªãã¨ããªã£ãã®ã§ã å¦ç¿ã®åèã«ãªã£ããã®ãªã©ãã¾ã¨ãã¦å¦ç¿ãã¼ãããããä½æãããã¾ããã ç§èªèº«ãã¾ã ã¾ã ã®ã¬ãã«ã§ãããããããTypeScriptãåå¼·ããã!ã¨ããæ¹ã®éããã¹ã«ãªãã°å¹¸ãã§ã Level 0: TypeScriptã£ã¦ãªãããï¼ ã¾ãå¦ç¿ããåã«ããã®å¯¾è±¡ããªããªã®ãããè¦æ¥µããä½æ¥ã§ãã TypeScript㯠altJS ã®ï¼ã¤ã§ãã JSã¯å ã 大è¦æ¨¡ãªã³ã¼ããçµãã«ã¯ä¸åããªè¨è¨ã«ãªã£ã¦ããã®ã§ã altJSã¨ããã¡ã¿è¨èªã§ã©ããã³ã°ãããã¨ã§æ±ãããããããã®ã§ãã altJSã§ä»ã«æåãªã®ã¯coffeeScriptãªã©ã§ããããã TypeScriptã¯typeã¨åä¹ã£ã¦ããéããéçåä»ããç¹å¾´ã¨ãã¦ãã¾ãã ã¾ããjsã¨äºææ§ããããjsã®ä¸ä½äºæï¼ã¹ã¼ãã»ã
ä»®æ³DOMã¯æ¬å½ã«âéãâã®ãï¼Â DOMæä½ã®æ°ããèãæ¹ãããã¬ã¼ã ã¯ã¼ã¯ãå®è£ ãã¦ç解ããã æè¿ã®JavaScriptãã¬ã¼ã ã¯ã¼ã¯ã§å©ç¨ããããä»®æ³DOMãã«ã¤ãã¦ããªã¢ã«DOMã®éããã¡ãªããã»ãã¡ãªãããä»®æ³DOMã使ã£ããã¬ã¼ã ã¯ã¼ã¯éçºãªã©ãããã¼ã·ãï¼bc_rikkoï¼ããã解説ãã¾ãã ã¯ããã¾ãã¦ããã¼ã·ãï¼@bc_rikkoï¼ã§ãããããã¤ã³ã¿ã¼ãããã§ããã³ãã¨ã³ãã¨ã³ã¸ãã¢ãããåããNES.cssã¨ãããã¡ãã³ã³é¢¨CSSãã¬ã¼ã ã¯ã¼ã¯ãéçºãã¦ãã¾ãã ãã£ããã§ãããçããã¯ãReactãVue.jsã¨ãã£ãJavaScriptãã¬ã¼ã ã¯ã¼ã¯ã使ã£ããã¨ãããã¾ããï¼ ãããã£ããã¬ã¼ã ã¯ã¼ã¯ã§ä½¿ããã¦ãããä»®æ³DOMã«ã¤ãã¦ç¥ã£ã¦ãã¾ããï¼ ãèãããã¨ãªãããèãããã¨ã¯ãããã©ãã©ãå®è£ ããã¦ãããã¯ç¥ããªãããçç¥ãã¦ãããããããããªã¬ãã«ã®æ¹ãã
ãã¹ããã©ã¯ãã£ã¹ããé«éåã«ã¤ãªããï¼ãã¨ç´¹ä»ããã¦ããè¨äºã§ã¯ãéå¹æããããã¯å¹æãããã·ãã¥ã¨ã¼ã·ã§ã³ããã¾ãã«éå®çãªææ³ãç´¹ä»ããã¦ãããã¨ãå¤ãã®ã§ãã¢ã³ããã¿ã¼ã³ã¨ãã¦ç´¹ä»ãã¾ãã æ¬è¨äºã¯ãWebããã©ã¼ãã³ã¹ Advent Calendar 2019ã2æ¥ç®ã®è¨äºã§ãã https://qiita.com/advent-calendar/2019/web_performance æ¬è¨äºã¯Webããã©ã¼ãã³ã¹é«éåã®å°é家ã§ããæ ªå¼ä¼ç¤¾Spelldataã®ç«¹æ´ é½ä¸éæ°ã«ã¢ããã¤ã¹ããããã¾ãããHTTP/2ã®ä¼éã®ç»åãªã©ä¸é¨è³æã®ãæä¾ãããã ãã¦ããã¾ããèª ã«ãããã¨ããããã¾ãã https://spelldata.co.jp/ ã»ã¨ãã©ã®å ´åã§ééã 1. ãã¹ã¦ã®ç»åãCSSã¹ãã©ã¤ããã®æãç»åããã¹ã¦1æã«ã¾ã¨ãã¦ãDOMã®background-image
ãã¡ãã®è¨äºã¯ãIndrek Lasn æ°ã«ãã2019å¹´ 10æã«å ¬éãããã Here Are 6 Front-End Challenges to Code ãã®å訳ã§ãã æ¬è¨äºã¯åèè ãã許å¯ãå¾ãä¸ã§è¨äºãå ¬éãã¦ãã¾ãã èè Twitter https://twitter.com/lasnindrek ããã³ãã¨ã³ãã®éçºã¯ã¹ãã¬ã¹ãå¤ãé£ããä½æ¥ã§ãããç·´ç¿ããã°æè¡ããã¹ã¿ã¼ãããã¨ãã§ãã¾ãã èªãé²ãã§éé¬ã¨åªåãããã°ãããã³ãã¨ã³ãéçºã®å ´é¢ã§åé¡ã解決ãããã¨ã®ã¨ãã¹ãã¼ãã¨ãªããã¨ãã§ããã§ãããã åªããããã³ãã¨ã³ãéçºè ã«ãªãããã«å¹æçãªæ¹æ³ã®ï¼ã¤ã¯ãåç´ã«ã§ããã ãå¤ãã®èª²é¡ã«åãçµã¿ã解決ãããã¨ã§ãã ããã³ãã¨ã³ãéçºã®é人ã«ãªãããã«ãä»æ¥ãã解ãå§ãããã¨ãã§ãã6ã¤ã®èª²é¡ãç´¹ä»ãã¾ãã ã§ã¯ãã£ãããå®è£ ãã¹ãï¼ã¤ã®èª²é¡ã¯ãã¡ãã 1. ã¯
æ¦è¦ åèè ã®è¨±è«¾ãå¾ã¦ç¿»è¨³ã»å ¬éãããã¾ãã è±èªè¨äº: Randall Degges - Please Stop Using Local Storage åæå ¬éæ¥: 2018/01/26 èè : Randall Degges æ¥æ¬èªã¿ã¤ãã«ã¯å 容ã«å³ãããã®ã«ãã¾ããã ç»åã¯å è¨äºããã®å¼ç¨ã§ãã åçå ¬é: 2019/10/19 追è¨æ´æ°: 2024/04/05 -- ãªã³ã¯æ å ±ãè¨äºæ«å°¾ã«ç§»åãã¾ãã æ¬æ°ã§ç³ãä¸ãã¾ããlocal storageã使ããªãã§ãã ããã local storageã«ã»ãã·ã§ã³æ å ±ãä¿åããéçºè ãããã»ã©å¤ãçç±ã«ã¤ãã¦ãç§ã«ã¯ãã£ã±ãè¦å½ãã¤ãã¾ããããããã©ããªçç±ã§ããããã®ææ³ã¯å°ä¸ããæ¶ãã¦ãªããªã£ã¦ãããå¿ è¦ãããã¾ãããæããã«æã«è² ããªããªãã¤ã¤ããã¾ãã ç§ã¯æ¯æ¥ã®ããã«ãéè¦ãªã¦ã¼ã¶ã¼æ å ±ãlocal storageã«ä¿åã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}