From be95630e4e3abee2dc2d437f00cb743070778264 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Sun, 26 Jul 2020 17:50:15 +0100 Subject: [PATCH] Search: Update from algoliasearch v3 to v4 * Use the new algoliasearch-lite mode available as of v4, which implements only the search() API and that's the only API we need. Overall this reduces the JS payload from ~70KB to ~11KB. * Avoid script errors on older browsers by limiting inline script execution with `type="module"`. --- _includes/search.html | 21 +++++++++++++++++---- _layouts/wrapper.html | 6 +++--- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/_includes/search.html b/_includes/search.html index d9a04e5..d0d4bb8 100644 --- a/_includes/search.html +++ b/_includes/search.html @@ -11,9 +11,9 @@ Remember to use the 'defer' attribute. {% endcomment %} - + -