Skip to content

Please provide some more detail on the boundary between server side and client side rendering #960

@cameronbraid

Description

@cameronbraid

I make heavy use of marko js purely client side at the moment, and I think its a great framework.

I am looking into the feasibility of using marko on the server.

How does marko identify which components are rendered on the server. Is there a way to explicitly make a component render on the client only ?

I see in the docs that 'top-level UI components' are rendered and their data serialised. What is a 'top-level UI component' ?

What I am trying to achieve is to render the main html (page layout, header logo, top nav etc..), and the above-the-fold components on the server (they would pull their data server side using fetch). Then once the UI has been assembled on the client the below-the-fold components would pull their data from the server using fetch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:docsRelated to documentation/website

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions