Skip to content
Ingvar Stepanyan edited this page Sep 5, 2013 · 5 revisions

jBinary supports dynamic loading via AMD too:

// somewhere in config:
require.config({
	paths: {
		jdataview: '//jdataview.github.io/dist/jdataview.js',
		jbinary: '//jdataview.github.io/dist/jbinary.js',
	}
});

// ...

// in code:
require(['jbinary'], function (jBinary) {
	// ...your code goes here...
});
Clone this wiki locally