Dispatch event when TiddlyFox is ready
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!
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 :)