https://github.com/tanakaworld/webperf-guide
Sample codes copied from http://gihyo.jp/book/2017/978-4-7741-9400-4/support
https://github.com/tanakaworld/webperf-guide
Last synced: 2 months ago
JSON representation
Sample codes copied from http://gihyo.jp/book/2017/978-4-7741-9400-4/support
- Host: GitHub
- URL: https://github.com/tanakaworld/webperf-guide
- Owner: tanakaworld
- Created: 2018-10-04T16:49:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-04T16:49:40.000Z (over 6 years ago)
- Last Synced: 2025-04-04T08:47:27.340Z (2 months ago)
- Language: HTML
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 『超速! Webページ速度改善ガイド』サンプルコード
技術評論社刊『超速! Webページ速度改善ガイド』(佐藤歩、泉水翔吾著)のサンプルコードです。
## 5thフォルダ
5thフォルダには次のフォルダが含まれています。
### scrolling-layout-thrashing
5.1節「レイアウト算出の調査と改善」にて扱うサンプルコードが含まれています。
### evaluate-expensive-styles
5.2節「ペイント処理の調査と改善」にて扱うサンプルコードが含まれています。
### accidental-layer-creation
5.3節「意図しないCompositingの調査と改善」にて扱うサンプルコードが含まれています。
## 9thフォルダ
9thフォルダには次のフォルダが含まれています。
### service-worker
9.1節「Service Workerによるネットワークリソースの制御」にて扱うService Workerのサンプルコードを含みます。
コマンドラインで対象フォルダに移動して、以下のコマンドを実行するとローカルサーバーが起動します。
```bash
$ python -m http.server
```起動後、ブラウザのアドレスバーに`http://localhost:8000`を入力すると、`index.html`が表示され`service-worker.js`がインストールされます。