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

Lazy-load InstantSearch scripts and stylesheets #3691

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

iBug
Copy link
Collaborator

@iBug iBug commented Jun 19, 2022

This is an enhancement or feature.

Summary

So that Algolia's InstantSearch-related stuff is only loaded from CDN when user clicks on the search icon. Those files add up to 400 KiB and are currently loaded in a blocking way, which has a non-trivial performance impact.

You can inspect the effect on my website.

lynxlynxlynx added a commit to gemrb/gemrb.github.io that referenced this pull request Feb 24, 2024
@iBug iBug merged commit 7584131 into mmistakes:master Apr 22, 2024
@iBug iBug deleted the lazyload-instantsearch branch April 22, 2024 15:25
minyoongi96 pushed a commit to minyoongi96/minyoongi96.github.io that referenced this pull request Aug 26, 2024
* Lazy-load InstantSearch scripts and stylesheets

* Replace outdated script parts
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