diff --git a/src/moin/templates/show.html b/src/moin/templates/show.html
index f925c0ac2..0eae32121 100644
--- a/src/moin/templates/show.html
+++ b/src/moin/templates/show.html
@@ -51,7 +51,7 @@
{% endblock %}
{% block options_for_javascript %}
- {%- if item_name and user.edit_on_doubleclick and user.may.write(item_name) -%}
+ {%- if item_name and user.edit_on_doubleclick and user.may.write(item_name) and data_rendered -%}
{%- endif %}
{%- if user.show_comments -%}