The landing page, that simple inviting page that beckons the user to explore. It gives a taste of what’s to come and it builds up to what’s behind the curtain. The calming simplicity tells the user to brace yourself for the site you’re about to view. Their are several UX reasons for having one, but they also offer an opportunity to greatly improve your site’s performance. Here are two ways:
measuring speed for future consideration
var obj = $.parseJSON(json);
On the other side, if you want to create a json on the client and write it to a cookie you could use json2.js as well as cookie.js
Calculating the median of an array basically involves sorting the array and picking the middle number. If it’s an even amount of numbers you take the two numbers in the middle and average them.