You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generally when you enable the search it will be the BULK of your sites download size.
For instance with abridge the download size is 328 KB, the search index is 253 KB or 77%, abridge theme demo only has 8 posts, a site with hundreds of posts will have a much larger index!
My idea to improve page load speed and reduce bandwidth usage is to dynamically load the search related JavaScript when a user clicks the search box. A user coming into your site from google results directly to their relevant page likely does not need your sites search so why serve them the file and waste the bandwidth?
If I can work out the last couple issues with this solution, then I think the only thing left to do is to add a facility for zola to bundle the search related files together as one, similarly to how I do it with uglifyjs.
The text was updated successfully, but these errors were encountered:
Generally when you enable the search it will be the BULK of your sites download size.
For instance with abridge the download size is 328 KB, the search index is 253 KB or 77%, abridge theme demo only has 8 posts, a site with hundreds of posts will have a much larger index!
My idea to improve page load speed and reduce bandwidth usage is to dynamically load the search related JavaScript when a user clicks the search box. A user coming into your site from google results directly to their relevant page likely does not need your sites search so why serve them the file and waste the bandwidth?
I am currently working on this here: Jieiku/abridge#81
I have this mostly working, but I had to consolidate the search related files manually:
Then I use a 300 byte javascript file to load this bundle dynamically:
https://github.com/Jieiku/abridge/blob/4f7fc2aa2ad9b1f0bb4d44ed7a7f5161a3d9999c/static/search_facade.js
If I can work out the last couple issues with this solution, then I think the only thing left to do is to add a facility for zola to bundle the search related files together as one, similarly to how I do it with uglifyjs.
The text was updated successfully, but these errors were encountered: