How to get the viewport size: jQuery's
document.documentElement.clientWidth is faster and nearly as cross-broswer compatible. Consider using
document.documentElement.clientWidth and a fallback to
$(window).width() when jQuery is available. The tables below compare these live against the less reliable inner/outer methods:
Additional text has been truncated due to copyright reasons. Things without URLs and private things don't get truncated.