The search index is a bit large on the JAM stack SSG #226
Replies: 4 comments 4 replies
-
Index size is definitely a priority for the project, and I agree that there's more that I could do to improve it! I think the reason it's noticably large today is because I've prioritized search bar usability (i.e. getting as many relevant results as possible and showing them with contextual snippets) over pure index size reductions. Here are a few projects in this area that I want to tackle:
I'd definitely appreciate any other suggestions or feedback you have. Thanks for using Stork! |
Beta Was this translation helpful? Give feedback.
-
Reviving this thread as my index file is now 13Mb (with 470 articles generated by Pelican) and impacts heavily usability - on mobile especially, the page loads only halfway and waits until the 13Mb file has been downloaded until the rest of the article is displayed. My site is deployed on Github Pages and I couldn't find if/how to compress the file server-side. Has there been any development re index compression, or any other workaround I should use? |
Beta Was this translation helpful? Give feedback.
-
Are there any more suggestions on this, I'd love to re-implement search on my site, but the current index is 45MB, which is a little bit too large to make it useful. |
Beta Was this translation helpful? Give feedback.
-
For my website main page has 258KB in total (uncompressed). Stork adds 420KB of js/wasm/css. And 8.2MB of index file. Which even with gzip compression is 2-2.5MB. |
Beta Was this translation helpful? Give feedback.
-
Hello,
Thanks for the great project first.
I am using Pelican, so I use this plugin.
I found the search-index is a bit large. It's about 375KB.
I was using Tipue, the JSON index size is about half of the search index by Stork.
The index size is larger than the HTML size of my article (each article is about 40KB). So the user / client side has to download quite a large index. I am curious if the index could be further reduced. I am not sure if it's a Stork problem or the plugin problem.
If you want to look at the index, it's in here, thanks!
Edit: I am able to use server side Brotli compression to make the search index to transfer as small as about 96KB.
Beta Was this translation helpful? Give feedback.
All reactions