{# Scripts that should be loaded first to avoid flickering (theme, etc) #} {% if static.scripts | length >= 1 %} {% for _, script in static.scripts | items %} {# Only load script if it should be in the head #} {% if script.place_in_head | default(False) %} {% endif %} {% endfor %} {% endif %}