Edit in JSFiddle

<div style="margin-bottom: 10px;">Use the button below to set the list's margin to a random value, this will cause the list to change dimensions and trigger a resize event.</div>
    
<button id="trigger">Trigger Resize</button>

<section id="wrap">
		<ul id="list">
			<li>I'm an unordered list</li>
			<li>I was last resized:</li>
			<li id="resize_time">No resizing detected yet!</li>
		</ul>
</section>