Changing my Static Site Search Setup

In Re-enabling search on my static website, I mentioned that I was re-enabling search on my static website.

One of the things I decided at the time was to take advantage of my JSON Feed, to remove the need to store a separate representation of all my posts.

Something I was worried about at the time was that it was downloading a fairly large JSON file each time, so I used the Web Storage API in the browser to cache the JSON file.

A few weeks ago, I found that search was broken on my site, as I'd gone over the size limit for the Web Storage API, and it finally got to the point that I needed to resolve this.

I've just updated it to no longer do this, and also to massively reduce the download size - from 14M it's now 200K - I hope to improve this further in the future, though!

Written by Jamie Tanna's profile image Jamie Tanna on , and last updated on .

Content for this article is shared under the terms of the Creative Commons Attribution Non Commercial Share Alike 4.0 International, and code is shared under the Apache License 2.0.

#search #www.jvt.me.

This post was filed under articles.

Interactions with this post

Interactions with this post

Below you can find the interactions that this page has had using WebMention.

Have you written a response to this post? Let me know the URL:

Do you not have a website set up with WebMention capabilities? You can use Comment Parade.