Skip to content

Commit

Permalink
HDX-9070 - Discovery - Google Search Console - Core Web Vitals - Prep…
Browse files Browse the repository at this point in the history
…are for March 2024

         - load fontawesome from CDN instead of CKAN
  • Loading branch information
aalecs committed Jun 27, 2024
1 parent 442753e commit 2d4b625
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/webassets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ common-js: &common-js
common-css: &common-css
filters: cssrewrite, rcssmin

vendor-vendor-css:
<<: *common-css
output: ckanext-hdx_theme/%(version)s_vendor-vendor.css
contents:
- vendor/fontawesome-free/css/all.css
# vendor-vendor-css:
# contents:
#same version as CKANs but from CDN and min
# Fontawesome is included directly in page.html

vendor-vendor:
#original is base/vendor/webassets.yml -> vendor
Expand Down Expand Up @@ -109,7 +108,7 @@ page-styles:
output: ckanext-hdx_theme/%(version)s_page-styles.css
<<: *common-css
contents:
- vendor-vendor-css
# - vendor-vendor-css - Fontawesome is included directly in page.html
- select2/select2.css
- page-common-styles
- base/base.css
Expand Down
1 change: 1 addition & 0 deletions ckanext-hdx_theme/ckanext/hdx_theme/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
{# {% resource 'hdx_theme/package/tracking.js' %}#}
{# {% endif %}#}
<link rel=preconnect href="https://fonts.gstatic.com" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
{#<script src="https://www.google.com/recaptcha/api.js" async defer></script>#}
{{ super() }}
{% asset 'hdx_theme/search-scripts' %}
Expand Down

0 comments on commit 2d4b625

Please sign in to comment.