Skip to content

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

@tigt

Description

@tigt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions