Skip to content

Commit

Permalink
Remove link tags for font assets
Browse files Browse the repository at this point in the history
Since we're using `src: url('...')` in CSS, these `link` tags shouldn't
be needed. A look in DevTools proves that the font asset requests are
coming from the CSS file.
  • Loading branch information
adamzap committed Dec 28, 2024
1 parent d068670 commit 480bd6b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions djangoproject/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@

<title>{% block title %}The web framework for perfectionists with deadlines{% endblock %} | Django</title>

<link href="{% static "fonts/FiraMono-Regular.woff" %}" as="font" type="font/woff" crossorigin="anonymous" />
<link href="{% static "fonts/FiraMono-Bold.woff" %}" as="font" type="font/woff" crossorigin="anonymous" />

<link href="{% static "fonts/fontawesome-webfont.woff" %}" as="font" type="font/woff" crossorigin="anonymous" />

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
Expand Down

0 comments on commit 480bd6b

Please sign in to comment.