hi Jed,
some libraries provide an 'I'm ready' event to listen for, but I cannot see 
one for snap. When a  lib is loaded in the header It will be compiled 
before the window.onload event fires. I think that the core should listen 
for this event and set a variable ie

window.onload=function() {
$tw.savetiddler tittle =$:/core/windowready etc
}

This would allow widgets to listen for this tiddler in their refresh 
function and not render until this tiddler is set.

maybe this would solve your problem.

all the best
BJ

On Friday, December 25, 2015 at 2:15:14 PM UTC, Jed Carty wrote:
>
> I don't know what a minimal example for this would be, but you can get the 
> error if you take an empty wiki, and import both the tiddler SVGImage1 and 
> the plugin from the demo, set the default tiddler to SVGImage1 and then 
> reload the wiki. From what I can tell the tiddler is rendered before the 
> script is loaded. I don't know how to make sure that the script is loaded 
> before the widget does anything.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b82e9df1-05c2-49a8-a4fb-a67b52a07297%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to