Skip to content

Commit 3c0e1ca

Browse files
authored
[Doc] fix some comments in component defer part
1 parent 9bcdd35 commit 3c0e1ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LiveComponent/doc/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -2311,12 +2311,12 @@ the page has loaded. To do this, add a ``loading="defer"`` attribute:
23112311

23122312
.. code-block:: html+twig
23132313

2314-
{# With the component function #}
2314+
{# With the HTML syntax #}
23152315
<twig:SomeHeavyComponent loading="defer" />
23162316

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

0 commit comments

Comments
 (0)