Skip to content

search: cache index per locale and tighten iframe postMessage origin #1350

Open
avinxshKD wants to merge 2 commits intoprocessing:mainfrom
avinxshKD:fix/issue-1249-searchprovider-codeembed
Open

search: cache index per locale and tighten iframe postMessage origin #1350
avinxshKD wants to merge 2 commits intoprocessing:mainfrom
avinxshKD:fix/issue-1249-searchprovider-codeembed

Conversation

@avinxshKD
Copy link
Copy Markdown

This changes the search flow to fetch/build the index only when locale changes, reuse the same Fuse instance for typing with a small debounce, and abort stale fetches, and it also removes wildcard postMessage usage by using same-origin target/checks.
I’m sending this as a small perf/safety cleanup for #1249 since the p5.sound part looks outdated now, but the repeated search work and loose messaging behavior were still valid to fix.

Refs #1249

@avinxshKD
Copy link
Copy Markdown
Author

@ksen0 @doradocodes pls take a look, kept focused fixes as discussed (search fetch/index flow + postMessage origin hardening)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant