-
Notifications
You must be signed in to change notification settings - Fork 134
Reduce search_index.js size #64
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
Comments
👍 Becomes > 20MB sometimes... |
Reduce in what way? minify, etc? |
AFAICS it's already minified and I guess it has to be that large to support searching for all possible keys. Could it maybe be loaded asynchronously so the user doesn't have to wait for it? |
Looked at the code for a bit and understood that any change to how the index file is generated (or an async JS snippet for loading the index file) should actually be incorporated into rdoc. Right @zzak? |
@Xuhao FWIW, Gzipping the file will reduce the size by a HUGE margin. This, however, won't work if the files are being served from the filesystem — in which case, having a large file is not really a problem anyway. |
Went ahead and implemented that Gzipping functionality into sdoc: kgrz@43c1aad (Work in progress. ) @zzak should we have something like that? |
👍 |
@kgrz Any update on this? |
Nope, will give this a another shot this week. The current code doesn't work as expected. Minor file-naming issues. My initial idea was that a gzipped index file should be generated which can be served by the server when the browser supports it. I still have add that part of the code. |
Hey! Sorry this is old news now, but I wanted to point out:
|
👍 Thanks for implementing! |
Is there any way to reduce search_index.js file?
The text was updated successfully, but these errors were encountered: