Fix #4058: FontAwesome CDN is slow/blocking.

Switch to the free self-hosted version of FontAwesome. We're not using
any Pro icons, so the Pro version isn't necessary.
This commit is contained in:
evazion
2019-10-22 12:02:26 -05:00
parent e9a3ed563c
commit 103742eb6c
5 changed files with 9 additions and 7 deletions

View File

@@ -68,12 +68,6 @@
"url" : "<%= root_url %>"
}
</script>
<% if request.domain =~ /donmai\.us/ %>
<!-- this is only usable on danbooru.donmai.us -->
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-6jHF7Z3XI3fF4XZixAuSu0gGKrXwoX/w3uFPxC56OtjChio7wtTGJWRW53Nhx6Ev" crossorigin="anonymous">
<% else %>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<% end %>
<script>
if (typeof window.Danbooru !== "object") {
window.Danbooru = {};