Skip to content

Commit 8b4f433

Browse files
committed
Remove unused async stylesheet loading script
1 parent 069277a commit 8b4f433

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

assets/js/boot.js

-23
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,12 @@
66
var head = document.head,
77
rootEl = document.documentElement
88

9-
function addStyleSheet(res) {
10-
var link = document.createElement('link')
11-
12-
if (res.integrity &&
13-
res.href.slice(0, 6) === 'https:') {
14-
link.crossOrigin = 'anonymous'
15-
link.integrity = res.integrity
16-
}
17-
18-
link.rel = 'stylesheet'
19-
link.href = res.href
20-
head.appendChild(link)
21-
}
22-
239
function toggleOffline() {
2410
rootEl.classList.toggle('offline')
2511
}
2612

2713
/*--------------------------------------------------------------------------*/
2814

29-
{% assign resources = site.data.init.array %}
30-
{% for res in site.vendor.css %}
31-
{% assign object = res | jsonify %}
32-
{% assign resources = resources | push:object %}
33-
{% endfor %}
34-
35-
// Add asynchronous style sheets.
36-
[{{ resources | join:',' }}].forEach(addStyleSheet)
37-
3815
{% if jekyll.environment == 'production' %}
3916
// Register service worker.
4017
if ('serviceWorker' in navigator) {

0 commit comments

Comments
 (0)