jQuery $.get() taking too long to load data
<pre><code>&lt;script type="text/javascript"&gt;
            $(".commentPost").live('click',function(){
                var expressID = $(this).attr('id');
                var comment = $("#getComment"+expressID).attr('value');

                $("#getComment"+expressID).attr('value','');
                $("#countdown"+expressID).attr('value','500');

                $.get('../addons/comment.jsp', { comment: comment, expressID: expressID }, function(data) {
                    $('#commentBlock'+expressID).append(data);
                });
            });
&lt;/script&gt;
</code></pre>

<p>The above code pass comment/id to another page <strong>"comment.jsp"</strong> and It'll do the database transaction and show output like below code. <strong>I tried to load below with Database transaction and without database transaction</strong>. But both the will hang the page. Google Chrome shows kill page or wait notification.</p>

<ul>
<li>Page having round about 20 commentPost button. That is handled by above jQuery function.</li>
</ul>

<p>Output need like or say its comment.jsp page</p>

<pre><code>&lt;div id="commentParent&lt;%out.print(commentID);%&gt;"&gt;
    &lt;table&gt;
        &lt;tr&gt;
            &lt;td style="vertical-align: top" rowspan="3"&gt;&lt;a href="/User/Profile.jsp?uid=&lt;%out.print(uid);%&gt;"&gt;&lt;img alt="&lt;%out.print(Name);%&gt;"  src="&lt;%out.print(Image);%&gt;" style="width: 25px;height: 25px"/&gt;&lt;/a&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="text-align: left"&gt;&lt;b&gt;&lt;a href="/User/Profile.jsp?uid=&lt;%out.print(commentID);%&gt;"&gt;&lt;%out.print(Name);%&gt;&lt;/a&gt; Says&lt;/b&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="text-align: left;overflow:hidden" id="comment&lt;%out.print(commentID);%&gt;"&gt;&lt;%out.print(_comment);%&gt; [ &lt;%out.print(_currentDate);%&gt;| &lt;a href="#" id="commentDelete" name="&lt;%out.print(commentID);%&gt;"&gt;Delete&lt;/a&gt;]&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/table&gt;
&lt;/div&gt;
</code></pre>
