cf-convention / vocabularies

Issues and source files for CF controlled vocabularies
3 stars 1 forks source link

add in browser kwic indexer #228

Closed DocOtak closed 3 weeks ago

DocOtak commented 1 month ago

This adds an in browser kwic indexer. It loads the current standard name table xml using a fetch request then performs the indexing on the client side.

Once merged, it should be available on the cf website under: https://cfconventions.org/vocabularies/kwic-index.html

This is intended to be a test as I was having performance issues on my own test site and nowhere else. I also don't know if how I'm doing the indexing is the most efficient way. Some thing I did to try to optimize:

Once the indexing is done the memory and CPU needed to display the page are similar to the statically built KIWC index files.

See the discussion for more information.

DocOtak commented 1 month ago

Updated to now include a link to download the generated HTML as a static file.