web-js
web-js copied to clipboard
Add hinclude alternative or esi alternative component
We can use a fragment_uri
to load user specific data over ajax. We should have a deeper look at the implementation of @martinlagler in Kügö where it also supports lazy loading.
Something like:
<div id="{{ prepare_component('ajax-include') }}" data-uri="{{ fragment_uri(controller(...)) }}" aria-busy="true"></div>
See also: https://github.com/sulu/web-twig/issues/10