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

Link Bomb In Explorer When Number of Notes is Large #1087

Open
ChenghaoMou opened this issue Apr 12, 2024 · 2 comments
Open

Link Bomb In Explorer When Number of Notes is Large #1087

ChenghaoMou opened this issue Apr 12, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@ChenghaoMou
Copy link

Thanks for this great project!

Is your feature request related to a problem? Please describe.

A simple comparison between explorer enabled and disabled:

bash -c "du -sh ./public"
407M    ./public
bash -c "du -sh ./public"
 99M    ./public

A quick look reveals that each of the generated page contains all the links in the explorer. I have more than 1k notes. Is there any way to prevent this or reduce the size?

Describe the solution you'd like
I know it might be too much for a static site generator, but I am all ears for any solutions, including the ones on how I should structure notes/blogs instead.

Describe alternatives you've considered
Disable the explorer would significantly reduce the size, but it makes the site less navigable.

Additional context
I can provide links to my blob/repo if needed (or you can just go to my profile). I don't want to include it here to attract the wrong bots.

@ChenghaoMou ChenghaoMou added the enhancement New feature or request label Apr 12, 2024
@jackyzha0
Copy link
Owner

Hm we can probably have an option to lazily fetch explorer content @benschlegel wdyt? I remember we talked about this at some point haha

@benschlegel
Copy link
Collaborator

Hmmm definitively sounds possible in theory, but probably would require some testing to see if/how easy it is to implement this, cool idea for sure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants