Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

evans: lazy/dynamic import of algolia search lib #92

Open
jaredh159 opened this issue Nov 30, 2023 · 0 comments
Open

evans: lazy/dynamic import of algolia search lib #92

jaredh159 opened this issue Nov 30, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request evans

Comments

@jaredh159
Copy link
Contributor

this is probably used only by a small percentage of visitors, and has a considerable bundle-size effect. it would be great to lazy-load it, like the checkout component.

i tried this once, but reverted it because i couldn't fix an issue on iOS where during the lazy load of the component, the search input field would lose focus and become basically unusable, so we need to carefully check it in a couple browsers and devices before going to prod.

it would be ideal to measure the build size before and after as well.

@jaredh159 jaredh159 added enhancement New feature or request evans labels Nov 30, 2023
@jaredh159 jaredh159 added this to the post nextjs conversion milestone Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request evans
Projects
None yet
Development

No branches or pull requests

2 participants