You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -202,24 +202,24 @@ Note: we recommend putting `.next` in `.npmignore` or `.gitigore`. Otherwise, us
202
202
<details>
203
203
<summary>Is this production ready?</summary>
204
204
Next.js has been powering `https://zeit.co` since its inception.
205
-
205
+
206
206
We’re ecstatic about both the developer experience and end-user performance, so we decided to share it with the community.
207
207
</details>
208
208
209
209
<details>
210
210
<summary>How big is it?</summary>
211
211
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
+
216
216
The codebase is ~1500LOC (excluding CLI programs).
217
217
218
218
</details>
219
219
220
220
<details>
221
221
<summary>Is this like `create-react-app`?</summary>
222
-
222
+
223
223
Yes and No.
224
224
225
225
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
238
238
239
239
<details>
240
240
<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.
243
243
244
244
There’s *no tradeoff* in power. Instead, we gain the power of simpler composition and usage of JavaScript expressions.
245
245
@@ -249,8 +249,8 @@ There’s *no tradeoff* in power. Instead, we gain the power of simpler composit
249
249
250
250
### Compilation performance
251
251
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
+
254
254
This results in better compilation performance and less memory usage, specially for large projects. No `cssom`, `postcss`, `cssnext` or transformation plugins.
255
255
256
256
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')`.
266
266
### Correctness
267
267
268
268
Since the class names and styles are defined as JavaScript objects, a variety of aids for correctness are much more easily enabled:
269
-
269
+
270
270
- Linting
271
271
- Type checking
272
272
- Autocompletion
@@ -324,11 +324,11 @@ We intend for Next.js to be a great starting point for any website or app, no ma
324
324
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.
325
325
326
326
But in some cases, the size of React itself would far exceed the content of the page!
327
-
327
+
328
328
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.
329
329
330
330
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
+
332
332
To turn the CDN off, just set `{ “next”: { “cdn”: false } }` in `package.json`.
333
333
</details>
334
334
@@ -358,7 +358,7 @@ The following issues are currently being explored and input from the community i
0 commit comments