JSFiddle - React, Tailwind, and code Playground
HTML
<h1>
Function Throttling Example | <a href="http://blog.kevinchisholm.com/" target="_blank">blog.kevinchisholm.com</a>
</h1>
<h2>
(throttling not implemented yet)
</h2>
<p>Please re-size the browser</p>
<div class="box">
<ul id="answer"></ul>
</div>
CSS
body{font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",Helvetica, Arial,"Lucida Grande",sans-serif;font-weight:300;font-size:18px;}
.box{min-height:20px;background-color:#ededed;border:1px solid #ccc;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:1%;}
h1{font-size:22px}
h2{font-size:18px}
JavaScript
window.onresize = function(){
$('#answer').append('<li>The window width is: ' + $(window).width() + '</li>');
};