A JavaScript Handbook exploring perfomance & readibility
A JavaScript Handbook exploring perfomance & readibility
ということで、前々回書いた通りSSR(Server Side Rendering)したくない派ですが、CSRの問題は解決したいので今回は初期ロード時間対策でCode Splittingを試してみます。 基本的なことしか試さないので、一度も試したこと無い人向け程度の内容かと思います。 Code Splitting この記事で言うCode Splittingはこのproposalにあるdynamic importを使ったCode Splittingのことです。react-routerを使った場合にrouteごとにjsファイルを分けることで、初期ロード時に1つの大きなバンドルされたjsファイルを読み込むのではなく、それぞれのrouteごとに必要最小限のjsファイルを読み込むことで初期ロード時間を低下させることを目的としたものです。(Routeは今回のデモのための例で、Route以外の用途にも使う
If you plot the commit count of each project over time it’s clear that QUnit and Jasmine are the oldest projects, and also that there is a very large amount of commits landing in the Jest repository right now (and have been for quite some time now) compared to all the other frameworks: Another interesting thing to look at is the weekly download count on npm for each framework over time; Mocha is t
Building a Color Picker Component IntroductionMarko makes building UI components extremely easy and fun! Today we are going to build a color picker component from scratch. We are going to learn how to: Create a project using marko-cliCreate a basic and customizable color picker componentOur final goal for today is create this component: Try Online Getting StartedThe quickest way to get up and runn
Air.js is an ES6 benchmark. It tries to faithfully use new features like arrow functions, classes, for-of, and Map/Set, among others. Air.js doesn't avoid any features out of fear that they might be slow, in the hope that we might learn how to make those features fast by looking at how Air.js and other benchmarks use them. This documents the motivation, design, and license of Air.js. To run Air.js
木内智史之介(シャッチョー) ミンカさんけっこんしてくださいおねがいします(ズザー SEGAさん、DIVAの筐体ください(ズザー 掲示板アプリでのコメントレンダリング問題 掲示板をアプリを作成していると、避けて通れない道の一つに、「コメントの描画」というものがあります。 単に、ユーザー入力をそのまま表示すればいいだけであれば、そんな簡単な事はないんですが、 当たり前ですが、色々要件はついてくるものです。 改行したポイントで改行されるように URLは自動的にリンクに レス記法(»1)は自動的にリンクにして、クリックでそのコメントにジャンプ 引用記法(> hogehoge)は、引用っぽく表示。あ、入れ子可能ね! レス記法までは、単純な正規表現と要素の置き換えで実現可能ですが、 引用の入れ子まで来ると、文章を構造化して管理していく必要性が出てきて、 急激に難易度が上昇します。 markd
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く