Skip to content

await main demos on production builds #17

@timothycohen

Description

@timothycohen

The first time each article is loaded, loadMainOnce decorates that article's main demo code blocks on the server and caches the resulting rawHTML. This is done to speed up the dev server's startup time. During prod builds, initServer should decorate all the code blocks eagerly.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions