{# most, if not all javascripts should go here this template is included at the very bottow of the main template "base.html" #}
{% if settings.DEBUG %} {% include "meta/dev_grid.html" %} {% endif %}
{# this section cannot be compressed because lots of data is runtime #} {# everything below until the custom js and google analytics is compressable #}
{% compress js %} {% if settings.USE_ASKBOT_LOGIN_SYSTEM and use_login_page == False %} {% endif %} {% if settings.SEARCH_FRONTEND_SRC_URL %} {% endif %} {% endcompress %} {% include "meta/custom_javascript.html" ignore missing %} {# stuff below should not be compressed #} {% if settings.ENABLE_MATHJAX %} {# we don't want to load mathjax just in case, only if it is really enabled #} {% endif %} {% if settings.USE_CUSTOM_JS %} {% endif %} {% if settings.GOOGLE_ANALYTICS_KEY %} {% endif %}