Use spaceless tag to avoids extra whitespace between HTML to avoid browser rendering quicks
If you want to optimize the size of the generated HTML content output in Drupal twig files use {% spaceless %} tag.
{% spaceless %}
<div>
<strong>ThirstySix</strong>
</div>
{% endspaceless %}
{# output will be <div><strong>ThirstySix</strong></div> #}
- 138 views
Add new comment