On every single .html page, I have this code right before the end of the <div data-role="page" id="home" data-theme="a"> div.
$('div:jqmData(role="page")').live('pagebeforeshow',function(){
resizeItems();
});
The resizeItems function is in /js/my.js.
It works on every page EXCEPT for index.html. And even more strange, it does work on index.html when you first go to the site or refresh it, but if you use a button to get back to index.html, it just doesn't run resizeItems.
Here is an example of the nav button I'm using:
<a data-role="button" data-transition="flip" href="index.html" data-icon="home" data-iconpos="notext" class="ui-btn-right"></a>
Any idea of why this could be happening? Thanks!