Buffer large DOM manipulations during re-render.
When using DomTemplate, wrap any content that you expect to change often during re-rendering. It will then remove its parent from the main document while it re-renders that section of code. It will only remove it from the main document if a mainpulation of somes sort happens. ie It won't swap out if it diesn't have to.
Parameter | Type | Description |
---|---|---|
parser | undefined | |
token | undefined |
By default, it considers only node addition/removal to be "changing"
{% buffer %}{% for item in items %}<li>{{ item }}</li>{% endfor %}{% endbuffer %}
You can explicitly declare options:
{% buffer node class %}{% for item in items %}<li>{{ item }}</li>{% endfor %}{% endbuffer %}
Parameter | Type | Description |
---|---|---|
nodelist | undefined | |
options | undefined |
Parameter | Type | Description |
---|---|---|
parser | undefined | |
token | undefined |
Parameter | Type | Description |
---|---|---|
parser | undefined | |
token | undefined |