Skip to content

Commit b01ddc5

Browse files
impronunciablerauchg
authored andcommitted
Added bundle size and % (vercel#43)
1 parent b997ca8 commit b01ddc5

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

Readme.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -202,24 +202,24 @@ Note: we recommend putting `.next` in `.npmignore` or `.gitigore`. Otherwise, us
202202
<details>
203203
<summary>Is this production ready?</summary>
204204
Next.js has been powering `https://zeit.co` since its inception.
205-
205+
206206
We’re ecstatic about both the developer experience and end-user performance, so we decided to share it with the community.
207207
</details>
208208

209209
<details>
210210
<summary>How big is it?</summary>
211211

212-
The client side next bundle, which includes React and Glamor is **${X}kb** gzipped.
213-
214-
The Next runtime (lazy loading, routing, `<Head>`) contributes **${Y}%** to the size of that bundle.
215-
212+
The client side next bundle, which includes React and Glamor is **73kb** gzipped.
213+
214+
The Next runtime (lazy loading, routing, `<Head>`) contributes around **15%** to the size of that bundle.
215+
216216
The codebase is ~1500LOC (excluding CLI programs).
217217

218218
</details>
219219

220220
<details>
221221
<summary>Is this like `create-react-app`?</summary>
222-
222+
223223
Yes and No.
224224

225225
Yes in that both make your life easier.
@@ -238,8 +238,8 @@ If you want to create re-usable React components that you can embed in your Next
238238

239239
<details>
240240
<summary>Why CSS-in-JS?</summary>
241-
242-
`next/css` is powered by [Glamor](https://github.com/threepointone/glamor). While it exposes a JavaScript API, it produces regular CSS and therefore important features like `:hover`, animations, media queries all work.
241+
242+
`next/css` is powered by [Glamor](https://github.com/threepointone/glamor). While it exposes a JavaScript API, it produces regular CSS and therefore important features like `:hover`, animations, media queries all work.
243243

244244
There’s *no tradeoff* in power. Instead, we gain the power of simpler composition and usage of JavaScript expressions.
245245

@@ -249,8 +249,8 @@ There’s *no tradeoff* in power. Instead, we gain the power of simpler composit
249249

250250
### Compilation performance
251251

252-
Parsing, prefixing, modularizing and hot-code-reloading CSS can be avoided by just using JavaScript.
253-
252+
Parsing, prefixing, modularizing and hot-code-reloading CSS can be avoided by just using JavaScript.
253+
254254
This results in better compilation performance and less memory usage, specially for large projects. No `cssom`, `postcss`, `cssnext` or transformation plugins.
255255

256256
It also means fewer dependencies and fewer things for Next to do. Everything is Just JavaScript® (since JSX is completely optional)
@@ -266,7 +266,7 @@ This is a very signifcant benefit over approaches like `require(‘xxxxx.css')`.
266266
### Correctness
267267

268268
Since the class names and styles are defined as JavaScript objects, a variety of aids for correctness are much more easily enabled:
269-
269+
270270
- Linting
271271
- Type checking
272272
- Autocompletion
@@ -324,11 +324,11 @@ We intend for Next.js to be a great starting point for any website or app, no ma
324324
If you’re building a very small mostly-content website, you still want to benefit from features like lazy-loading, a component architecture and module bundling.
325325

326326
But in some cases, the size of React itself would far exceed the content of the page!
327-
327+
328328
For this reason we want to promote a situation where users can share the cache for the basic runtime across internet properties. The application code continues to load from your server as usual.
329329

330330
We are committed to providing a great uptime and levels of security for our CDN. Even so, we also **automatically fall back** if the CDN script fails to load [with a simple trick]().
331-
331+
332332
To turn the CDN off, just set `{ “next”: { “cdn”: false } }` in `package.json`.
333333
</details>
334334

@@ -358,7 +358,7 @@ The following issues are currently being explored and input from the community i
358358

359359
## Authors
360360

361-
- Naoyuki Kanezawa ([@nkzawa](https://twitter.com/nkzawa)) – ▲ZEIT
362-
- Tony Kovanen ([@rase-](https://twitter.com/rase-)) – ▲ZEIT
363-
- Guillermo Rauch ([@rauchg](https://twitter.com/rauchg)) – ▲ZEIT
361+
- Naoyuki Kanezawa ([@nkzawa](https://twitter.com/nkzawa)) – ▲ZEIT
362+
- Tony Kovanen ([@rase-](https://twitter.com/rase-)) – ▲ZEIT
363+
- Guillermo Rauch ([@rauchg](https://twitter.com/rauchg)) – ▲ZEIT
364364
- Dan Zajdband ([@impronunciable](https://twitter.com/impronunciable)) – Knight-Mozilla / Coral Project

0 commit comments

Comments
 (0)