GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Fizz/Flight] pipeToNodeWritable(..., writable).startWriting() -> renderToPipeableStream(...).pipe(writable) by sebmarkbage · Pull Request #22450 · react/react

Conversation

@sebmarkbage

@sebmarkbage sebmarkbage commented Sep 28, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This changes the API from:

pipeToNodeWritable(..., writable).startWriting();

to:

renderToNodePipe(...).pipe(writable);

The idea is that this more closely mirrors what you'd typically do with a Node stream. It still allows you to delay writing until a time for your choice (such as after onCompleteAll).

However, now that I think about it there are not really that many best practices remaining.

The idea was that you could wait until you've accumulated enough info to populate the header with meta data - such as the HTTP status code and <head>.

However, it's not really great to wait before writing because you can't emit the preload tags as early as possible in the stream. You don't have to wait for that to deal with <head> but you do for status codes.

There's really only two valid options emerging:

  1. Wait for onCompleteAll if the UA is a bot that cares about head tags and status codes.
  2. Otherwise stream as early as possible but let React buffer/throttle things to avoid sending too small chunks.

It might be better to just let the API reflect that and have two root APIs that do just that and then you don't have to bother with when to call startWriting/pipe. So I might abandon this.

cc @devknoll

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

wongmjane, shuding, and swansoftly01 reacted with thumbs up emoji gaearon reacted with laugh emoji
All reactions
  • 👍 3 reactions
  • 😄 1 reaction
@sebmarkbage
sebmarkbage requested review from gaearon and salazarm September 28, 2021 02:00
@facebook-github-bot facebook-github-bot added the React Core Team Opened by a member of the React Core Team label Sep 28, 2021
@sebmarkbage
sebmarkbage force-pushed the renamestartwriting branch from 0f3e005 to 2af324a Compare September 28, 2021 02:03
@facebook-github-bot facebook-github-bot added the CLA Signed label Sep 28, 2021
@sizebot

sizebot commented Sep 28, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Comparing: 6485ef7...a127ca0

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 130.05 kB 130.05 kB = 41.34 kB 41.34 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 132.88 kB 132.88 kB = 42.31 kB 42.31 kB
facebook-www/ReactDOM-prod.classic.js = 413.66 kB 413.66 kB = 76.44 kB 76.44 kB
facebook-www/ReactDOM-prod.modern.js = 402.24 kB 402.24 kB = 74.71 kB 74.71 kB
facebook-www/ReactDOMForked-prod.classic.js = 413.66 kB 413.66 kB = 76.45 kB 76.45 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react-dom/server.node.js +1.25% 0.64 kB 0.65 kB = 0.26 kB 0.25 kB
oss-stable-semver/react-dom/server.node.js +1.25% 0.64 kB 0.65 kB = 0.26 kB 0.25 kB
oss-stable/react-dom/server.node.js +1.25% 0.64 kB 0.65 kB = 0.26 kB 0.25 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.production.min.server.js +1.11% 6.85 kB 6.92 kB +0.95% 2.84 kB 2.87 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.production.min.server.js +1.11% 6.85 kB 6.92 kB +0.95% 2.84 kB 2.87 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.production.min.server.js +1.11% 6.85 kB 6.92 kB +0.95% 2.84 kB 2.87 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.development.server.js +1.01% 27.95 kB 28.24 kB +0.99% 7.50 kB 7.58 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.development.server.js +1.01% 27.95 kB 28.24 kB +0.99% 7.50 kB 7.58 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.node.development.server.js +1.01% 27.95 kB 28.24 kB +0.99% 7.50 kB 7.58 kB

Generated by 🚫 dangerJS against a127ca0

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sebmarkbage

sebmarkbage commented Sep 28, 2021

Copy link
Copy Markdown
Contributor Author

It is nice that this mirrors the ReadableStream for web streams which can be deferred when they're given to the response.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sebmarkbage
sebmarkbage force-pushed the renamestartwriting branch from 2af324a to 6aac895 Compare September 28, 2021 02:14
@devknoll

devknoll commented Sep 28, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

For what it’s worth, Next.js primary reason for wanting to wait is for error handling: if we can generate at least the shell, we can safely rely on the client-side fallback for error handling. Waiting keeps the stream in a known state for us to manually recover outside of React (e.g. to flush a static, known good error page) in case an error occurs before then.

If React could provide more guarantees or preferably manage the entire response stream for us, we could likely do away with that need.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sebmarkbage

sebmarkbage commented Sep 28, 2021

Copy link
Copy Markdown
Contributor Author

That makes sense. Maybe we need to support error boundaries at the root after all.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

devknoll
devknoll reviewed Sep 28, 2021
View reviewed changes
Comment thread fixtures/flight/server/handler.server.js Outdated
res.setHeader('Access-Control-Allow-Origin', '*');
const moduleMap = JSON.parse(data);
pipeToNodeWritable(React.createElement(App), res, moduleMap);
const {pipe} = renderToNodePipe(React.createElement(App), moduleMap);

@devknoll devknoll Sep 28, 2021

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies in advance for the unsolicited bikeshedding. The name renderToNodePipe just feels odd to me. Thoughts on something like streamRoot(…).pipe(…) or renderStreamingRoot(…).pipe(…) for symmetry with hydrateRoot and createRoot?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@gaearon gaearon Sep 28, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

createRoot and hydrateRoot deal with a "root" object. The object is important because it's stateful (you can update a root or unmount a root later).

This seems a bit different because (1) you don't get a root object — the root object is a client-only concept -- and (2) it's not possible to update it or such. So it seems misleading. I'd expect something like streamRoot to accept or produce a "root" object, which it doesn't.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

eps1lon reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@sebmarkbage sebmarkbage Sep 28, 2021

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea I also had the impression that “render” was out of place but the equivalent is the root.render(…) function which is when it starts rendering.

Interestingly I have been questioning the root api. It’s odd that you have to have a container before you render it because you really don’t need one to render it. Just to commit it. We used to have a way to explicitly commit and that the first time you need a container.

Similarly you don’t really need the HTML to be there before you start the hydration process. You can start rendering and then later map the tree onto the HTML.

We probably won’t change the client due to implementation details but it’s interesting that the client could end up mirroring this api more in the future.

I think my ideal name would be renderToNodeStream but we already have that name temporarily to help the upgrade path. And what you get isn’t really a Node stream but it kind of is meant to mimic a readable stream that is limited to the pipe() function.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gaearon reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@sebmarkbage sebmarkbage Sep 28, 2021

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My thinking around the “Node” part is that it’s worth clarifying that it’s non-standard. If it was to remain the defacto standard maybe we wouldn’t need the Node prefix but that doesn’t seem to be the case.

Since the modules are auto-swapped by condition we don’t really need a unique name. It can be the same name. However type systems don’t seem to consider the conditional environments yet so it’s nicer to just pretend all the exports exist for now.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@devknoll devknoll Sep 28, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

createRoot and hydrateRoot deal with a "root" object. The object is important because it's stateful (you can update a root or unmount a root later).

Well, it is (or was) stateful in a sense. You couldn’t update it, but you can tell it to start writing or to abort. And you give it temporary ownership of a resource to mutate (a stream) along with a desired React tree, which is similar to the DOM node and tree you pass the other functions.

I guess the bigger issue is that it sounds like “root” might have a different meaning for y’all: I guess I assumed it just referred to the root of a React tree that can be controlled over time, but it sounds like it specifically means a root host element?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@sebmarkbage sebmarkbage Sep 28, 2021

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way I think about “hydrateRoot(…)” is that you’re extracting a root that already existed (conceptually).

So in that sense it seems like someone just have created it at some point on the server.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@sebmarkbage sebmarkbage Sep 28, 2021

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some ideas for rendering non-root subtrees for subsequent requests. Those would not be the same as roots on the client. However, they would likely be different APIs. Using the word root might help disambiguate them.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
salazarm
salazarm approved these changes Oct 1, 2021
View reviewed changes

@salazarm salazarm left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks reasonable to me

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sebmarkbage
sebmarkbage force-pushed the renamestartwriting branch from 6aac895 to 404e036 Compare October 6, 2021 01:47
sebmarkbage added 5 commits October 5, 2021 23:23
@sebmarkbage
Rename pipeToNodeWritable to renderToNodePipe
3117d94
@sebmarkbage
Add startWriting API to Flight
0d94381
We don't really need it in this case because there's way less reason to
delay the stream in Flight.
@sebmarkbage
Pass the destination to startWriting instead of renderToNode
b366cab
@sebmarkbage
Rename startWriting to pipe
df7ac95
This mirrors the ReadableStream API in Node
@sebmarkbage
Error codes
460b829
@sebmarkbage
sebmarkbage force-pushed the renamestartwriting branch from 404e036 to 460b829 Compare October 6, 2021 03:24
@sebmarkbage
Rename to renderToPipeableStream
a127ca0
This mimics the renderToReadableStream API for the browser.
@sebmarkbage sebmarkbage changed the title [Fizz/Flight] pipeToNodeWritable(..., writable).startWriting() -> renderToNodePipe(...).pipe(writable) [Fizz/Flight] pipeToNodeWritable(..., writable).startWriting() -> renderToPipeableStrea(...).pipe(writable) Oct 6, 2021
@sebmarkbage sebmarkbage changed the title [Fizz/Flight] pipeToNodeWritable(..., writable).startWriting() -> renderToPipeableStrea(...).pipe(writable) [Fizz/Flight] pipeToNodeWritable(..., writable).startWriting() -> renderToPipeableStream(...).pipe(writable) Oct 6, 2021
@sebmarkbage
sebmarkbage merged commit 579c008 into react:main Oct 6, 2021
@sebmarkbage

sebmarkbage commented Oct 6, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

One concern I had about this api was that it discourages starting to pipe earlier which means that preload tags can’t be emitted.

One solution to that would be to have something like startWriting() but for holding back the head/shell content. Like flushShell(). That would mean that the web ReadableStream api would also need something like this which makes both apis a lot less elegant.

However, the reason to hold back streaming is so you can target a bot. However bots also tend to benefit from status codes. Eg to ignore updating the previously scraped result.

You can’t stream preload tags before the status code is sent since it’s part of the headers. As a result you have to hold back everything anyway if you want the option to set the status code.

So it seems better to go for the simpler api.

I renamed it to renderToPipeableStream to pair with renderToReadableStream.

shuding reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

facebook-github-bot pushed a commit to react/react-native that referenced this pull request Oct 12, 2021
Andrei Shikov @facebook-github-bot
React Native sync for revisions e8feb11...afcb9cd
c75ad2c
Summary:
This sync includes the following changes:
- **[579c008](react/react@579c008a7 )**: [Fizz/Flight] pipeToNodeWritable(..., writable).startWriting() -> renderToPipeableStream(...).pipe(writable) ([#22450](react/react#22450)) //<Sebastian Markbåge>//
- **[f2c3811](react/react@f2c381131 )**: fix: useSyncExternalStoreExtra ([#22500](react/react#22500)) //<Daishi Kato>//
- **[0ecbbe1](react/react@0ecbbe142 )**: Sync hydrate discrete events in capture phase and dont replay discrete events ([#22448](react/react#22448)) //<salazarm>//
- **[a724a3b](react/react@a724a3b57 )**: [RFC] Codemod invariant -> throw new Error ([#22435](react/react#22435)) //<Andrew Clark>//
- **[201af81](react/react@201af81b0 )**: Release pooled cache reference in complete/unwind ([#22464](react/react#22464)) //<Joseph Savona>//
- **[033efe7](react/react@033efe731 )**: Call get snapshot in useSyncExternalStore server shim ([#22453](react/react#22453)) //<salazarm>//
- **[7843b14](react/react@7843b142a )**: [Fizz/Flight] Pass in Destination lazily to startFlowing instead of in createRequest ([#22449](react/react#22449)) //<Sebastian Markbåge>//
- **[d9fb383](react/react@d9fb383d6 )**: Extract queueing logic into shared functions ([#22452](react/react#22452)) //<Andrew Clark>//
- **[9175f4d](react/react@9175f4d15 )**: Scheduling Profiler: Show Suspense resource .displayName ([#22451](react/react#22451)) //<Brian Vaughn>//
- **[eba248c](react/react@eba248c39 )**: [Fizz/Flight] Remove reentrancy hack ([#22446](react/react#22446)) //<Sebastian Markbåge>//
- **[6638815](react/react@66388150e )**: Remove usereducer eager bailout ([#22445](react/react#22445)) //<Joseph Savona>//
- **[d3e0869](react/react@d3e086932 )**: Make root.unmount() synchronous  ([#22444](react/react#22444)) //<Andrew Clark>//
- **[2cc6d79](react/react@2cc6d79c9 )**: Rename onReadyToStream to onCompleteShell ([#22443](react/react#22443)) //<Sebastian Markbåge>//
- **[c88fb49](react/react@c88fb49d3 )**: Improve DEV errors if string coercion throws (Temporal.*, Symbol, etc.) ([#22064](react/react#22064)) //<Justin Grant>//
- **[05726d7](react/react@05726d72c )**: [Fix] Errors should not "unsuspend" a transition ([#22423](react/react#22423)) //<Andrew Clark>//
- **[3746eaf](react/react@3746eaf98 )**: Packages/React/src/ReactLazy ---> changing -1 to unintialized ([#22421](react/react#22421)) //<BIKI DAS>//
- **[04ccc01](react/react@04ccc01d9 )**: Hydration errors should force a client render ([#22416](react/react#22416)) //<Andrew Clark>//
- **[029fdce](react/react@029fdcebb )**: root.hydrate -> root.isDehydrated ([#22420](react/react#22420)) //<Andrew Clark>//
- **[af87f5a](react/react@af87f5a83 )**: Scheduling Profiler marks should include thrown Errors ([#22417](react/react#22417)) //<Brian Vaughn>//
- **[d47339e](react/react@d47339ea3 )**: [Fizz] Remove assignID mechanism ([#22410](react/react#22410)) //<Sebastian Markbåge>//
- **[3a50d95](react/react@3a50d9557 )**: Never attach ping listeners in legacy Suspense ([#22407](react/react#22407)) //<Andrew Clark>//
- **[82c8fa9](react/react@82c8fa90b )**: Add back useMutableSource temporarily ([#22396](react/react#22396)) //<Andrew Clark>//
- **[5b57bc6](react/react@5b57bc6e3 )**: [Draft] don't patch console during first render ([#22308](react/react#22308)) //<Luna Ruan>//
- **[cf07c3d](react/react@cf07c3df1 )**: Delete all but one `build2` reference ([#22391](react/react#22391)) //<Andrew Clark>//
- **[bb0d069](react/react@bb0d06935 )**: [build2 -> build] Local scripts //<Andrew Clark>//
- **[0c81d34](react/react@0c81d347b )**: Write artifacts to `build` instead of `build2` //<Andrew Clark>//
- **[4da03c9](react/react@4da03c9fb )**: useSyncExternalStore React Native version ([#22367](react/react#22367)) //<salazarm>//
- **[48d475c](react/react@48d475c9e )**: correct typos ([#22294](react/react#22294)) //<Bowen>//
- **[cb6c619](react/react@cb6c619c0 )**: Remove Fiber fields that were used for hydrating useMutableSource ([#22368](react/react#22368)) //<Sebastian Silbermann>//
- **[64e70f8](react/react@64e70f82e )**: [Fizz] add avoidThisFallback support ([#22318](react/react#22318)) //<salazarm>//
- **[3ee7a00](react/react@3ee7a004e )**: devtools: Display actual ReactDOM API name in root type ([#22363](react/react#22363)) //<Sebastian Silbermann>//
- **[79b8fc6](react/react@79b8fc667 )**: Implement getServerSnapshot in userspace shim ([#22359](react/react#22359)) //<Andrew Clark>//
- **[86b3e24](react/react@86b3e2461 )**: Implement useSyncExternalStore on server ([#22347](react/react#22347)) //<Andrew Clark>//
- **[8209de2](react/react@8209de269 )**: Delete useMutableSource implementation ([#22292](react/react#22292)) //<Andrew Clark>//

Changelog:
[General][Changed] - React Native sync for revisions e8feb11...afcb9cd

jest_e2e[run_all_tests]

Reviewed By: yungsters

Differential Revision: D31541359

fbshipit-source-id: c35941bc303fdf55cb061e9996200dc868a6f2af
@gaearon gaearon mentioned this pull request Mar 29, 2022
Add React 18 changelog #24195
Merged
zhengjitf pushed a commit to zhengjitf/react that referenced this pull request Apr 15, 2022
@sebmarkbage @zhengjitf
[Fizz/Flight] pipeToNodeWritable(..., writable).startWriting() -> ren…
20c081e
…derToPipeableStream(...).pipe(writable) (react#22450)

* Rename pipeToNodeWritable to renderToNodePipe

* Add startWriting API to Flight

We don't really need it in this case because there's way less reason to
delay the stream in Flight.

* Pass the destination to startWriting instead of renderToNode

* Rename startWriting to pipe

This mirrors the ReadableStream API in Node

* Error codes

* Rename to renderToPipeableStream

This mimics the renderToReadableStream API for the browser.
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
@sebmarkbage
[Fizz/Flight] pipeToNodeWritable(..., writable).startWriting() -> ren…
7b34ffe
…derToPipeableStream(...).pipe(writable) (react#22450)

* Rename pipeToNodeWritable to renderToNodePipe

* Add startWriting API to Flight

We don't really need it in this case because there's way less reason to
delay the stream in Flight.

* Pass the destination to startWriting instead of renderToNode

* Rename startWriting to pipe

This mirrors the ReadableStream API in Node

* Error codes

* Rename to renderToPipeableStream

This mimics the renderToReadableStream API for the browser.
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@sebmarkbage
[Fizz/Flight] pipeToNodeWritable(..., writable).startWriting() -> ren…
9f41b5f
…derToPipeableStream(...).pipe(writable) (react#22450)

* Rename pipeToNodeWritable to renderToNodePipe

* Add startWriting API to Flight

We don't really need it in this case because there's way less reason to
delay the stream in Flight.

* Pass the destination to startWriting instead of renderToNode

* Rename startWriting to pipe

This mirrors the ReadableStream API in Node

* Error codes

* Rename to renderToPipeableStream

This mimics the renderToReadableStream API for the browser.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gaearon gaearon Awaiting requested review from gaearon
2 more reviewers
@devknoll devknoll devknoll left review comments
@salazarm salazarm salazarm approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@sebmarkbage @sizebot @devknoll @gaearon @salazarm @facebook-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.