diff --git a/notebook/templates/tree.html b/notebook/templates/tree.html
index 0790c19f1..050da8bdc 100644
--- a/notebook/templates/tree.html
+++ b/notebook/templates/tree.html
@@ -167,5 +167,9 @@ data-terminals-available="{{terminals_available}}"
{% block script %}
{{super()}}
-
+{% if ignore_minified_js %}
+
+{% else %}
+
+{% endif %}
{% endblock %}