Skip to content

Commit

Permalink
[Doc] fix some comments in component defer part
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek- authored Aug 9, 2024
1 parent 9bcdd35 commit 3c0e1ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2311,12 +2311,12 @@ the page has loaded. To do this, add a ``loading="defer"`` attribute:

.. code-block:: html+twig

{# With the component function #}
{# With the HTML syntax #}
<twig:SomeHeavyComponent loading="defer" />

.. code-block:: twig
{# With the HTML syntax #}
{# With the component function #}
{{ component('SomeHeavyComponent', { loading: 'defer' }) }}
This renders an empty ``<div>`` tag, but triggers an Ajax call to render the
Expand Down

0 comments on commit 3c0e1ca

Please sign in to comment.