Kwasi Denkyira

Kwasi Denkyira

  • 1.5k
  • 192
  • 13.4k

IE taking too long to open a page

Aug 6 2019 2:23 PM
I am using an html table with foreach and mvc5. Rendering just 954 rows takes over 5 minutes to display in IE but 23seconds in Chrome. The problem is we are not allowed to use Chrome The Linq query takes 1.26secs. Below is my Html table. Any help would be appreciated.
 
@using TestSystem
@model IEnumerable<EmpDTO>
<table class="table table-striped">
<thead>
<tr>
<th style="width: 190px; padding-right:15px; font-size:8pt; font-family: verdana; FONT-WEIGHT: bold; COLOR: #666666;">Emp Number</th>
<th style="width: 190px; padding-right:15px; font-size:8pt; font-family: verdana; FONT-WEIGHT: bold; COLOR: #666666;">Emp Comments</th>
<th style="width: 190px; padding-right:15px; font-size:8pt; font-family: verdana; FONT-WEIGHT: bold; COLOR: #666666;">Admin Submit</th>
<th style="width: 190px; padding-right:15px; font-size:8pt; font-family: verdana; FONT-WEIGHT: bold; COLOR: #666666;">Admin Review</th>
<th></th>
<th style="width: 180px; padding-right:15px; font-size:8pt; font-family: verdana; FONT-WEIGHT: bold; COLOR: #666666;">Supervisor Submit</th>
<th style="width: 160px; padding-right:15px; font-size:8pt; font-family: verdana; FONT-WEIGHT: bold; COLOR: #666666;">Supervisor Final Review</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var model in Model)
{
var item = model;
<tr>
<td>
@if (!model.EmpDisplay)
{
<a href="@Url.Action("")/@item.Id">
<span>@item.Id</span>
<span> - </span>
<span>
@if (item.SupervisorSubmit != null)
{
@item.SupervisorSubmit.Value.ToString("d MMM yyyy")
}
</span>
@if (model.ResubmissionNum > 0)
{
<span>|@Html.DisplayFor(i => model.ResubmissionNum)|</span>
}
</a>
}
else
{
<span>@item.Id</span>
<span> - </span>
<span>
@if (item.SupervisorSubmit != null)
{
@item.SupervisorSubmit.Value.ToString("d MMM yyyy")
}
</span>
if (model.ResubmissionNum > 0)
{
<span>|@Html.DisplayFor(i => model.ResubmissionNum)|</span>
}
}
</td>

Answers (3)