Skip to content

Commit

Permalink
refactor(deps): drop unpkg, kxcdn for cdnjs (#264)
Browse files Browse the repository at this point in the history
Use just one CDN for all our dependencies, moving unpkg/kxcdn refs
to cdnjs. This will allow us to tighten our CSP, especially given that
cdnjs has bigger backing from Cloudflare.
  • Loading branch information
LoneRifle authored Mar 14, 2024
1 parent bbd2aaf commit 80287b8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<link rel="stylesheet" href="{{- site.baseurl -}}/assets/css/blueprint.css">
<link rel="stylesheet" href="{{- site.baseurl -}}{{- site.custom_css_path -}}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,600" crossorigin="anonymous">
<link href='https://unpkg.com/boxicons@2.0.9/css/boxicons.min.css' rel='stylesheet'>
<link href='https://cdnjs.cloudflare.com/ajax/libs/boxicons/2.0.9/css/boxicons.min.css' rel='stylesheet'>
{%- if site.vica -%}
<link
href="https://webchat.vica.gov.sg/static/css/chat.css"
Expand Down
2 changes: 1 addition & 1 deletion _includes/main_scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@


{%- if page.layout == 'search' -%}
<script src="https://unpkg.com/lunr@2.3.6/lunr.js" integrity="sha384-WYZhYwlpZbtVuVpKReDUDRhoKr0MubxAfgcS0k8y5lprnl0i482oHTKTBeWTbcaz" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.6/lunr.js" integrity="sha384-WYZhYwlpZbtVuVpKReDUDRhoKr0MubxAfgcS0k8y5lprnl0i482oHTKTBeWTbcaz" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/3.0.9/purify.min.js" integrity="sha384-3HPB1XT51W3gGRxAmZ+qbZwRpRlFQL632y8x+adAqCr4Wp3TaWwCLSTAJJKbyWEK" crossorigin="anonymous"></script>
<script src="{{- "/assets/posts.js" | relative_url -}}"></script>
<script src="{{- "/assets/js/worker.js" | relative_url -}}" crossorigin="anonymous"></script>
Expand Down
1 change: 0 additions & 1 deletion assets/js/worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

let loaded = false;

async function loadcontext() {
Expand Down

0 comments on commit 80287b8

Please sign in to comment.