KosmosisDire / obsidian-webpage-export

Export html from single files, canvas pages, or whole vaults. Direct access to the exported HTML files allows you to publish your digital garden anywhere. Focuses on flexibility, features, and style parity.
https://docs.obsidianweb.net/
MIT License
693 stars 58 forks source link

How to set up the file metadata.json not to be generated or requested? #425

Open wuxiemian opened 2 months ago

wuxiemian commented 2 months ago

I generated the online website just for my own convenience for cross-platform reading, so I don’t need some SEO-related files. Can you add a setting to cancel the generation of these files to make website access faster?

KosmosisDire commented 2 months ago

The metadata will actually be used in the website itself in future versions and it is also used to enable incremental export. It actually has nothing to do with SEO. Is there a reason you don't want it?

wuxiemian commented 2 months ago

The metadata will actually be used in the website itself in future versions and it is also used to enable incremental export. It actually has nothing to do with SEO. Is there a reason you don't want it?

Because I have a lot of documents, the metadata.json file is relatively large, and the request for metadata.json is not asynchronous, so when the website is opened for the first time or when the cache fails, the page will freeze until the request is completed. I tried to remove the metadata.json request myself and found that it had no effect, so I thought it was used to optimize SEO. If it has other uses in the future, can you try to request the file asynchronously?

KosmosisDire commented 2 months ago

It is already asynchronous, however the page needs to wait for that data before it can function properly. What I can do however, is separate the crucial data into a separate file that should be much smaller. I think that is a better way to do it anyway, thank you for the feedback.

KosmosisDire commented 2 months ago

Well, also I should be able to display the current page as well without that data. I only need that data to load embedded pages, and to allow navigation.

wuxiemian commented 2 months ago

Well, also I should be able to display the current page as well without that data. I only need that data to load embedded pages, and to allow navigation.

It would be great if it could be implemented. Also I really appreciate your plugin, it's one of the most important reasons why I use Obsidian