Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of document.write() for streaming HTML parse #5

Open
tigt opened this issue Sep 2, 2019 · 0 comments
Open

Use of document.write() for streaming HTML parse #5

tigt opened this issue Sep 2, 2019 · 0 comments

Comments

@tigt
Copy link

tigt commented Sep 2, 2019

As shown in Jake Archibald’s Fun hacks for faster content, document.write() may bizarrely have a place in fast in-page loading:

By streaming the content via the iframe, content appears 1.5 seconds sooner. The avatars also finish loading half a second sooner - streaming means the browser finds out about them earlier, so it can download them in parallel with the content.

This technique is a really good way to make navigation transitions with traditional server-side rendering, so I’d hate to see it disallowed entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant