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

[IDEA] Is it possible to delay some plugin? #8161

Open
linonetwo opened this issue Apr 22, 2024 · 0 comments
Open

[IDEA] Is it possible to delay some plugin? #8161

linonetwo opened this issue Apr 22, 2024 · 0 comments

Comments

@linonetwo
Copy link
Contributor

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

When install a new plugin, it requires reload. But if lazy load a plugin, it shouldn't, because it is send from the nodejs server, which is safe.

I want to delay the loading and executing of tw-react, WYSIWYG-editor, whiteboard plugin, when using nodejs server for blogging. So initial load will be smaller, and reader can still see the whiteboard.

Describe the solution you'd like

  1. Allow bypass Require-Reload when using some $tw.wiki API to lazy load JS modules
  2. Allow trigger lazy-load of plugin when a widget, filter operator, macro is being used

Describe alternatives you've considered

What I'm currently doing is exclude these large size plugins when deploying a blog.

Or like mermaid-tw5-lite version, that load JS from CDN. Maybe I can release a Whiteboard-light plugin, that load JS from CDN, and only take effect when Whiteboard-full version is not present. So it work both offline and online.

Additional context

Just find Whiteboard doesn't work on my blog, because I exclude it. Everything works on your blog should have been an advantage when compare to Obsidian, whose plugins doesn't work on the blog.

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

No branches or pull requests

1 participant