diff --git a/templates/zerver/app/index.html b/templates/zerver/app/index.html
index b8f461d581..32c9d3a885 100644
--- a/templates/zerver/app/index.html
+++ b/templates/zerver/app/index.html
@@ -8,6 +8,10 @@
{% endblock %}
{% block customhead %}
+{% if enable_gravatar %}
+{% endif -%}
+{% if s3_avatar_public_url_prefix %}
+{% endif -%}