CDN Caching and Fallback

Federated Wiki represents a big lump of code and some big libraries too. Let's make sure we don't let these slow down wiki.

Fetch Fast

Popular libraries like jQuery and D3 exist on content distribution networks (CDN) which can deliver them much faster than the average small site.

One danger is that the CDN won't be accessible when serving wiki from localhost disconnected from the internet. Simple schemes check for successful loading and fall back to local copies when the internet fails to deliver.

The HappyWorm explains failing to a local copy. post

Scott Hanselman describes the failover situation and overs numerous alternatives.Scott Hanselman blog

Cache Copies

HTML5 offers long-term caching of libraries so long as a manifest is included to guide this behavior. I understand this would let many tabs share the same copy of a library so long as there was some agreement as to what should be in it. wikipedia

It could be attractive to distribute recent versions of client.js from fed.wiki.org or github.io. This would assume that a particular sites plugin complement wouldn't be merged into this file.