Lazy loading components

Hello,
Is there a way to lazy load components that require server-side fetching without using JavaScript? I mean rendering static content as soon as possible and then lazy loading data in specific parts of the HTML. Iโ€™m not sure if RenderMode client and server can achieve this.

Client/Server RenderMode does not affect this, it affects if the data is only sent in the JSON or also in pre-generated HTML (it primarily affect Repeater/GridView controls, other controls tend to just send both).

The simplest way to accomplish this is using the LoadablePanel control from DotVVM contrib. You specify a staticCommand which will be executed right after the component loads. If you have multiple in page, then the request execute in parallel.

1 Like

Oh right, I missed that one. Thank you!