Skip to content

Commit a2d47f0

Browse files
committed
No need to load d3 or jquery for these templates.
Commit ready for merge. - Legacy-Id: 19482
1 parent b0d642d commit a2d47f0

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

ietf/templates/doc/document_html.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
{% block pagehead %}
88
<link rel="alternate" type="application/atom+xml" title="Document changes" href="/feed/document-changes/{{ doc.name }}/">
99
<meta name="description" content="{{ doc.title }} {% if doc.get_state_slug == "rfc" %}(RFC {{ rfc_number }}{% if published %}, {{ published.time|date:"F Y" }}{% endif %}{% if obsoleted_by %}; obsoleted by {{ obsoleted_by|join:", " }}{% endif %}){% else %}(Internet-Draft, {{ doc.time|date:"Y" }}){% endif %}">
10-
<script src="{% static 'd3/d3.min.js' %}"></script>
11-
<script src="{% static 'jquery/jquery.min.js' %}"></script>
1210
{% endblock %}
1311

1412
{% block morecss %}
@@ -100,4 +98,4 @@
10098
}
10199
// -->
102100
</script>
103-
{% endblock %}
101+
{% endblock %}

ietf/templates/doc/htmlized_base.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,6 @@
149149

150150
</div>
151151

152-
{% comment %}
153-
<!-- Remove the *-nojs attributes if we are running js. This depends on jQuery's removeClass(): -->
154-
<!-- Do this as early as possible (after loading the page and jQuery) to avoid rendering changes -->
155-
{% endcomment %}
156-
<script>$(".visible-nojs").removeClass("visible-nojs");</script>
157-
<script>$(".hidden-nojs").removeClass("hidden-nojs");</script>
158152
{% block js %}{% endblock %}
159153
</body>
160-
</html>
161-
154+
</html>

0 commit comments

Comments
 (0)