diff --git a/templates/include/post-render.tmpl b/templates/include/post-render.tmpl index 8e694a0..7079ccd 100644 --- a/templates/include/post-render.tmpl +++ b/templates/include/post-render.tmpl @@ -44,8 +44,9 @@ // Check what we need to load for (i=0; i < lb.length; i++) { lang = lb[i].className.replace('language-',''); - if (!langs.includes(lang)) { - jss.push(hlbaseUri + "languages/" + lang + ".min.js"); + lurl = hlbaseUri + "languages/" + lang + ".min.js"; + if (!(langs.includes(lang) || jss.includes(lurl))) { + jss.push(lurl); } } // Load files in order, higlight on last load