This is server side (ONLY) pure performance question, no "what you think is better" or "best practice" or "Best of SEO"... I want to know what is the fastest render from the POS liquid engine... yes I could run my own tests but someone else might already know :)
{% liquid
assign test = "test"
assign test2 = "test2"
%}
{%- liquid
assign test = "test"
assign test2 = "test2"
-%}
{% assign test = "test" %}
{% assign test2 = "test2" %}
{%- assign test = "test" -%}
{%- assign test2 = "test2" -%}
The reason I came up with this is that {%- trims whitespace, but I don't know if this is done is realtime or done in the backend somehow.
Obvious there is not going to be much difference, but wanted to squeeze as much time saving as possible.
Thanks!
-
Rich - DataOTAlso my bullet point numbering decided to render all as 1's :)
Apr 15 2021 at 07:25