Skip to content

Lazy-load HTML templates #53

@andrew

Description

@andrew

Templates are parsed at server startup even when they're never used. The API endpoints and proxy handlers don't need them, and in practice the APIs are likely to see far more traffic than the web UI.

Move template parsing behind a sync.Once so the cost is only paid on the first request that actually renders HTML.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions