aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-07-22 10:30:26 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-07-22 10:30:26 +0200
commit841f9d0f9bb766b8dc67c7f2fa3c25a2555a8f19 (patch)
tree3f40f2c563ef747f1a03133db2e9e0c80217a67c /index.html
parent062918b5e2b3d01d842500425853782b08905596 (diff)
downloadperl-software-in-gnu-guix-841f9d0f9bb766b8dc67c7f2fa3c25a2555a8f19.tar
perl-software-in-gnu-guix-841f9d0f9bb766b8dc67c7f2fa3c25a2555a8f19.tar.gz
only load highlight.js if there's a 'pre code' block on page
Diffstat (limited to 'index.html')
-rw-r--r--index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.html b/index.html
index 6285c54..2d3ede1 100644
--- a/index.html
+++ b/index.html
@@ -408,7 +408,7 @@ function linkify( selector ) {
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
- { src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
+ { src: 'plugin/highlight/highlight.js', async: true, condition: function() { return !!document.querySelector( 'pre code' ); }, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
]