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

Too large size of bookmark-file #43

Open
heikoh81 opened this issue Jan 17, 2023 · 3 comments
Open

Too large size of bookmark-file #43

heikoh81 opened this issue Jan 17, 2023 · 3 comments
Labels
Type: Question Question regarding the project

Comments

@heikoh81
Copy link

Hi Darek

thanks for Static Marks.
I've noticed that my output file is quite large for a few html links, approx. 200 kb.
This could be a problem on small data plans and mobile use, although some of the content might be cached on the mobile.
I have 60+ links in several boxes, however, I wouldn't need the search bar. Also, I don't need the collapse/expand feature for links.
The output file should not be as big as 200 kb, and I think a static html file could be much smaller in file size.

Is it possible to create a more simple static bookmark file, e.g. with command line arguments?

Greetings,
Heiko

@heikoh81 heikoh81 changed the title Too large Size of bookmark-file Too large size of bookmark-file Jan 17, 2023
@darekkay
Copy link
Owner

darekkay commented Jan 18, 2023

Hello Heiko,
the default output file is so big because it is a small self-contained app, including React and a few other libraries. With that said, you are free to use a custom template file as described under features. I have provided an example template that is only 4kb big, with ~60 bookmarks it's 8kb big (pre gzip). Use the --template-file [file] flag as documented to pass your template. There's no specific documentation around custom templates, but I'm assuming the example files should be sufficient to come up with your own template if necessary. If you have and issue/question, let me know.

@darekkay darekkay added the Type: Question Question regarding the project label Jan 18, 2023
@darekkay
Copy link
Owner

I've created a new enhancement ticket to provide built-in templates.

@Jiehong
Copy link

Jiehong commented Jul 17, 2023

Perhaps another point would also be to try to reduce the default template weight?

Like, perhaps tree-shaking the included libs, or maybe checking if we can remove some of them?

(side note: serving it gzipped on my side it’s 68k transferred for 206k size and that’s for around 70 bookmarks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Question regarding the project
Projects
None yet
Development

No branches or pull requests

3 participants