Merged in [19482] from lars@eggert.org:

No need to load d3 or jquery for these templates.
 - Legacy-Id: 19518
Note: SVN reference [19482] has been migrated to Git commit a2d47f0af8
This commit is contained in:
Robert Sparks 2021-11-01 18:55:44 +00:00
commit 0a024cd217
2 changed files with 2 additions and 11 deletions

View file

@ -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 %}
@ -100,4 +98,4 @@
}
// -->
</script>
{% endblock %}
{% endblock %}

View file

@ -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>