I am still thinking about using an AMD loader on an exploded version of
Tiddlywiki 5 since I still can’t install anything or use an external
hosting service at work. Also, I know from experience that if I load all my
tiddlers into one file it will take a long time to load and I want to share
it from a shared folder on an intranet.

In my search I discovered when.js <https://github.com/cujojs/when> which is
cujojs's lightweight CommonJS <http://wiki.commonjs.org/wiki/Promises>
Promises/A <http://wiki.commonjs.org/wiki/Promises/A> and when()
implementation,
derived from the async core of wire.js <https://github.com/cujojs/wire>,
cujojs's IOC Container. It also provides several other useful
Promise-related concepts, such as joining multiple promises, mapping and
reducing collections of promises, timed promises, and has a robust unit
test suite <https://github.com/cujojs/when#running-the-unit-tests>. It
passes the Promises/A Test Suite <https://github.com/domenic/promise-tests>,
is frighteningly
fast<https://github.com/cujojs/promise-perf-tests#test-results>,
and is *under 1.3k* when compiled with Google Closure (w/advanced
optimizations) and gzipped, and has no dependencies.

Since Tiddlywiki 5 uses CommonJS modules, I figure it shouldn't be that
hard to wire together the source files using <script
src="path/to/when/when.js"></script> and even configure a loader with a
package. I am not a programmer so if anyone is interested in explaining how
this could work please let me know.

After much searching on the internet I ran across Writing Modular
JavaScript With AMD, CommonJS & ES
Harmony<http://addyosmani.com/writing-modular-js/>.
It appears to be the direction that programming for the Internet is going.
AMD, HTML5, CSS3 and ES Harmony, correct me if I am wrong.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en.

Reply via email to