Reload tab content when tab becomes active

Is it possible to reload/refresh the content within…

<div id="tabID" class="page-content tab">

… when the tab becomes active? So for example:

$$('.page-content').on('tab:show', '#tabID', function() {
  //refresh/reload code here


How it should be refreshed? Just write what you need (e.g. make XHR request and update HTML) in that tab:show event handler