some links stuck on loading spinner while others work perfectly

some links stuck on loading spinner while others work perfectly

I'm using Simple HTML DOM Parser inside jQuery Mobile.  I'm pulling links from a website, then passing them to another page for article parsing.  Some links get passed fine and it works perfectly while a couple get stuck on the loading spinner with no error message.  Same problem with all browsers.  If I take out jQuery Mobile, every link gets passed and next pages get opened.  The strange this is if I add rel="external" to the first php, then the page which didn't open before, it opens.  When I add rel="external" to the second php part, the entire page doesn't load AT ALL.  Just a blank web page.  Using XAMPP, if that matters.  Here's my code sample:

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css" /> 
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> 
<script src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"></script>
<div data-role="page"> 
<div data-role="content"> 
<ul data-role="listview" data-theme="c" data-dividertheme="b"> 
<li data-role="list-divider">Top News</li> 
<?php include_once ('simple_html_dom.php'); 
$html = file_get_html('http://www.example.com'); 
foreach ($html->find('*.overridable a[class=title]') as $main){ 
echo '<li><a href="news.php?url='.urlencode($main->href).'" data-transition="slidedown">'.$main->plaintext.'</a></li>'; 
} ?> 
<li data-role="list-divider">Other News</li> 
<?php include_once ('simple_html_dom.php'); 
$html = file_get_html('http://www.example.com'); 
foreach ($html->find('div[class=river-post yui-u] h2 a[href*=example]') as $ret){ 
echo '<li><a href="othernews.php?url='.urlencode($ret->href).'" data-transition="slidedown">'.$ret->plaintext.'</a></li>'; 
} ?> 
</ul> 
</div>