How to (best) load jQuery (or any other js framework, really) in tw5?
I guess there are basically two ways...
1. load and initialize it form an external source
- using a script tag with a tiddler tagged *$:/tags/RawMarkup*
2. putting it in a tiddler, e.g. *$:/lib/jquery.1.1.1.min.js* with
*type*=*application/javascript & **module-type*=*library*
- have some other code, e.g. a js macro do *require(*
*$:/lib/jquery.1.1.1.min.js)* so as to initialize it and then set
*window.jQuery* and *window.$* to it
Anything else?
*Note: *This is not a discussion about whether to load jQuery in tw5 at all
or not but how.
Best wishes, Tobias.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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 http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.