Remove CDN dependencies, copy files locally
Having requests to some CDNs on a login page is often considered Bad™, since it can load third-party code on a sensitive page of the website. As a side effect, this removes calls to fonts.google.com, which is a known tracking website.
This commit is contained in:
parent
83658010f0
commit
93740066b3
13 changed files with 5049 additions and 9 deletions
BIN
allauth_ens/static/allauth_ens/fonts/roboto-bold.ttf
Normal file
BIN
allauth_ens/static/allauth_ens/fonts/roboto-bold.ttf
Normal file
Binary file not shown.
BIN
allauth_ens/static/allauth_ens/fonts/roboto-regular.ttf
Normal file
BIN
allauth_ens/static/allauth_ens/fonts/roboto-regular.ttf
Normal file
Binary file not shown.
BIN
allauth_ens/static/allauth_ens/fonts/roboto-slab-regular.ttf
Normal file
BIN
allauth_ens/static/allauth_ens/fonts/roboto-slab-regular.ttf
Normal file
Binary file not shown.
25
allauth_ens/static/allauth_ens/fonts/roboto.css
Normal file
25
allauth_ens/static/allauth_ens/fonts/roboto.css
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
/** This CSS file was taken from fonts.google.com
|
||||||
|
*
|
||||||
|
* The font "roboto" and its derivatives are under Apache license, as published
|
||||||
|
* here: https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
* The font is by Christian Robertson. Thanks!
|
||||||
|
*/
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: local('Roboto'), local('Roboto-Regular'), url(roboto-regular.ttf) format('truetype');
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
src: local('Roboto Bold'), local('Roboto-Bold'), url(roboto-bold.ttf) format('truetype');
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto Slab';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(roboto-slab-regular.ttf) format('truetype');
|
||||||
|
}
|
4
allauth_ens/static/allauth_ens/jquery-3.2.1.slim.min.js
vendored
Normal file
4
allauth_ens/static/allauth_ens/jquery-3.2.1.slim.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2337
allauth_ens/static/font-awesome/css/font-awesome.css
vendored
Normal file
2337
allauth_ens/static/font-awesome/css/font-awesome.css
vendored
Normal file
File diff suppressed because it is too large
Load diff
4
allauth_ens/static/font-awesome/css/font-awesome.min.css
vendored
Normal file
4
allauth_ens/static/font-awesome/css/font-awesome.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
allauth_ens/static/font-awesome/fonts/fontawesome-webfont.eot
Normal file
BIN
allauth_ens/static/font-awesome/fonts/fontawesome-webfont.eot
Normal file
Binary file not shown.
2671
allauth_ens/static/font-awesome/fonts/fontawesome-webfont.svg
Normal file
2671
allauth_ens/static/font-awesome/fonts/fontawesome-webfont.svg
Normal file
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 434 KiB |
BIN
allauth_ens/static/font-awesome/fonts/fontawesome-webfont.ttf
Normal file
BIN
allauth_ens/static/font-awesome/fonts/fontawesome-webfont.ttf
Normal file
Binary file not shown.
BIN
allauth_ens/static/font-awesome/fonts/fontawesome-webfont.woff
Normal file
BIN
allauth_ens/static/font-awesome/fonts/fontawesome-webfont.woff
Normal file
Binary file not shown.
BIN
allauth_ens/static/font-awesome/fonts/fontawesome-webfont.woff2
Normal file
BIN
allauth_ens/static/font-awesome/fonts/fontawesome-webfont.woff2
Normal file
Binary file not shown.
|
@ -16,21 +16,20 @@
|
||||||
|
|
||||||
{# CSS #}
|
{# CSS #}
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
href="https://fonts.googleapis.com/css?family=Roboto:400,700|Roboto+Slab:400">
|
href="{% static "allauth_ens/fonts/roboto.css" %}">
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
|
href="{% static "font-awesome/css/font-awesome.min.css" %}"
|
||||||
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"
|
>
|
||||||
crossorigin="anonymous">
|
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
href="{% static "allauth_ens/screen.css" %}">
|
href="{% static "allauth_ens/screen.css" %}">
|
||||||
|
|
||||||
{# JS #}
|
{# JS #}
|
||||||
<script type="text/javascript"
|
<script type="text/javascript"
|
||||||
src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
|
src="{% static "allauth_ens/jquery-3.2.1.slim.min.js" %}"
|
||||||
integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g="
|
integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g=">
|
||||||
crossorigin="anonymous"></script>
|
</script>
|
||||||
<script type="text/javascript"
|
<script type="text/javascript"
|
||||||
src="{% static "allauth_ens/authens.js" %}"></script>
|
src="{% static "allauth_ens/authens.js" %}"></script>
|
||||||
|
|
||||||
{% block extra_js %}{% endblock %}
|
{% block extra_js %}{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue