diff --git a/_includes/search.html b/_includes/search.html index be5af99..d375b7e 100644 --- a/_includes/search.html +++ b/_includes/search.html @@ -12,13 +12,38 @@ * https://www.jsdelivr.com/package/npm/algoliasearch * https://www.jsdelivr.com/package/npm/autocomplete.js -Remember to use the 'defer' attribute. +We use type="module" as a natural way to cut the mustard, +executing the script only on modern browsers with ES6 support, +and causing no errors on older browsers. +See https://responsivenews.co.uk/post/18948466399/cutting-the-mustard {% endcomment %} - -