js/highcharts-master/utils/benchmark/javascript-functions.js
/* Using ajax this function finds the correct script
 * from a specific folder and returns it as text.
 * The callback converts the text to runable code,
 * and sends it to runChart().
**/
Using ajax this function finds the correct script
from a specific folder and returns it as text.
The callback converts the text to runable code,
and sends it to runChart().
Using ajax this function finds the correct script from a specific folder and returns it as text . The callback converts the text to runable code and sends it to runChart () .
function loadScript(test) {
		$.ajax({
			url: 'tests-js/'+test,
			success: function(data) {
				tst = new Function([], "return " + data);
				options = tst();
				runChart(options, test);
				},
			dataType: 'text'
		});
	}
function loadScript ( test ) { $ . ajax ( { url : 'tests-js/' + test , success : function ( data ) { tst = new Function ( [ ] , "return " + data ) ; options = tst ( ) ; runChart ( options , test ) ; } , dataType : 'text' } ) ; }
Using ajax this function finds the correct script
 from a specific folder and returns it as text.
Using ajax this function finds the correct script from a specific folder and returns it as text .