Skip to content

Commit

Permalink
No need to load d3 or jquery for these templates.
Browse files Browse the repository at this point in the history
Commit ready for merge.
 - Legacy-Id: 19482
  • Loading branch information
larseggert committed Oct 28, 2021
1 parent b0d642d commit a2d47f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 1 addition & 3 deletions ietf/templates/doc/document_html.html
Expand Up @@ -7,8 +7,6 @@
{% block pagehead %}
<link rel="alternate" type="application/atom+xml" title="Document changes" href="/feed/document-changes/{{ doc.name }}/">
<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 %}">
<script src="{% static 'd3/d3.min.js' %}"></script>
<script src="{% static 'jquery/jquery.min.js' %}"></script>
{% endblock %}

{% block morecss %}
Expand Down Expand Up @@ -100,4 +98,4 @@
}
// -->
</script>
{% endblock %}
{% endblock %}
9 changes: 1 addition & 8 deletions ietf/templates/doc/htmlized_base.html
Expand Up @@ -149,13 +149,6 @@

</div>

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

</html>

0 comments on commit a2d47f0

Please sign in to comment.