Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Dispatch event when TiddlyFox is ready #32

Open
Leftium opened this issue Jun 23, 2015 · 1 comment
Open

Dispatch event when TiddlyFox is ready #32

Leftium opened this issue Jun 23, 2015 · 1 comment

Comments

@Leftium
Copy link

Leftium commented Jun 23, 2015

Request for a minor enhancement: when TiddlyFox is ready, dispatch an event (like tiddlyfox-ready).

When loading a TiddlyWiki (compatible) file, the injected methods are not available right away. First, the permissions dialog must be accepted. But even when the permissions are cached, there is a slight delay before methods like mozillaSaveFile become available. The duration of this delay is not consistent.

The reason I am asking for this enhancement is because I am re-using TiddlyFox for my own project (quine.html). It is partially functional even if TiddlyFox is not installed. So I test if TiddlyFox is available and show a notification if TiddlyWiki is not found.

I worked around the delay and lack of event when TiddlyFox is ready by polling via setInterval() and giving up after about 80ms. It's not perfect, and having an event would be much better.

BTW thanks for TiddlyFox and TiddlyWiki!

@Jermolene
Copy link
Member

Hi @Leftium

Request for a minor enhancement: when TiddlyFox is ready, dispatch an event (like tiddlyfox-ready).

That makes perfect sense, yes.

The reason I am asking for this enhancement is because I am re-using TiddlyFox for my own project (quine.html).

Terrific, I like the idea of a minimalistic take on TiddlyWiki. Now all you have to do is resist adding features :)

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

No branches or pull requests

2 participants