title: Which JQuery Tab Widget offers an onload event?
body: <p>Which tabstrip widget has a working onload event hook, so I can run some code (load tab contents) whenever a tab is opened?</p>
  
  <p>JQuery UI tabs has an <a href="http://api.jqueryui.com/tabs/#event-activate" rel="nofollow noreferrer">"activate" event</a>, but it's not triggered when the page is loaded, so opening URL#tabs-2 will show an empty second tab. There is a <a href="http://api.jqueryui.com/tabs/#event-create" rel="nofollow noreferrer">"create" event</a>, which is triggered when the page is loaded, but not when a tab is clicked, which leads to duplicate code (same callback in both events).<br>
  So far I've only found the <a href="https://stackoverflow.com/a/17446803/664132">obvious workaround</a> to put that code in a separate function loadTabstrip1Tab(index)/loadTabstrip2Tab(index)/... which is called in both events.<br>
  According to a <a href="http://bugs.jqueryui.com/ticket/8735" rel="nofollow noreferrer">bug report (activate event not fired for first tab when created)</a>, the lack of such an event seems to be a design decision.<br>
  There's probably a simple solution, but I can't seem to figure it out.<br>
  (Re-)<a href="https://stackoverflow.com/a/17583129/664132">Activating the currently active tab</a> does nothing.</p>
  
  <p><strong>Is there a fix for this widget?</strong></p>
  
  <p><strong>Can someone recommend another tab widget which offers such a tab activation event hook?</strong></p>